October 28th, 2004, 01:08 PM
Download a file
Is there a simple control or function that can allow me to download a file from a webserver and save it locally? I need to cache some files for my program for later use from a web server. Thanks
October 31st, 2004, 10:29 AM
Note that url_to_download should include 'http://' in the beginning. If you use 'www.yahoo.com/' instead of 'http://www.yahoo.com/', it won't work because the http:// is missing.
URLDownloadToFile(nil, PChar(url_to_download), PChar(filename_to_save), 0, nil);
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo