Download File Test : Web Client « Network « C# / C Sharp
- C# / C Sharp
- Network
- Web Client
Download File Test
using System;
using System.Net;
public class DownloadFileTest
{
public static void Main(string[] argv)
{
WebClient wc = new WebClient();
string filename = "webpage.htm";
wc.DownloadFile(argv[0], filename);
Console.WriteLine("file downloaded");
}
}
Related examples in the same category