download a webpage

BustaCap

Newcomer
Joined
Sep 21, 2003
Messages
5
I need to download the source code of a webpage into a file. What would be the best way to do that?

Thanks
 
Visual Basic:
Dim wc As New System.Net.WebClient
        Dim b() As Byte = wc.DownloadData("http://www.microsoft.com")  'b() will contain the raw data

        wc.DownloadFile("http://www.microsoft.com", "c:\test.html") 'c:\test.html will contain data
 
Back
Top