Mega Code Archive

 
Categories / VB.Net Tutorial / Socket Network
 

Save a web page to a file

Imports System.Net Imports System.IO Imports System.Text Public Class Tester     Public Shared Sub Main         Dim myWebClient As New WebClient()         Dim mybyte() As Byte         mybyte = myWebClient.DownloadData("http://www.rntsoft.com")         myWebClient.DownloadFile("http://www.rntsoft.com", "test.txt")     End Sub End Class