Download and save a web page

This VB.NET sample shows how to download a web page and save to a local file using the WebClient class. This sample code downloads a web page from and saves to a local file (c:\abc.html) in your machine.

Dim webClient As New System.Net.WebClient
webClient.DownloadFile("", "C:\spider.html")