Thursday, November 26, 2009

How to Download a File using C#.NET in Visual Studio

System.Net.WebClient wc = new System.Net.WebClient();
wc.DownloadFile("http://www.images.com/some.jpg",@"C:\some.jpg");

this is so simple. You can download any kind of file using this.

Post a Comment