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.java2s.com")
myWebClient.DownloadFile("http://www.java2s.com", "test.txt")
End Sub
End Class