Download File Test

image_pdfimage_print
   


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");
   }
}


           
          


This entry was posted in C# Network. Bookmark the permalink.