2017년 2월 27일 월요일

[C#] To download content on the internet using WebClient

Following example is to download a website content using WebClient.
It's very simple.




using System.Net;

class Program
{
    static void Main()
    {
   WebClient wc = new WebClient{Proxy = null};
   wc.DownloadFile("http://www.albahari.com/nutshell/code.html", "d:\\code.html");
    }
}

댓글 없음:

댓글 쓰기