Download File : WebClient : Network C# Examples


C# Examples » Network » WebClient »

 

Download File









    
using  System;
using  System.Net;

class  MainClass
{
      public  static  void  Main(string[]  argv)
      {
            WebClient  wc  =  new  WebClient();
            string  filename  =  "index.html";
            wc.DownloadFile("http://www.navioo.com",  filename);
            Console.WriteLine("file  downloaded");
      }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Network
» WebClient