• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

download a file in c#

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

asusradeon

Member
Joined
Oct 25, 2004
Location
127.0.0.1
i need to copy a file from my webserver to the dir that my app is running from. at the moment i have:

Code:
url = "http://www.**********.co.uk/ww_iplog837532.csv";
localname = url.Substring(url.LastIndexOf("/") + 1);
File.Copy(url, localname);

can the file.copy() only be used locally? if so what can i use to download the file ?

thanks
 
Back