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");
}
}
댓글 없음:
댓글 쓰기