VB.NET
Dim wc As New System.Net.WebClient()
wc.DownloadFile("http://localhost/index.html", "C:\test.html")
wc.Dispose()
C#System.Net.WebClient wc = new System.Net.WebClient();
wc.DownloadFile("http://localhost/index.html", "C:\\test.html");
wc.Dispose();