BustaCap Posted October 5, 2003 Posted October 5, 2003 I need to download the source code of a webpage into a file. What would be the best way to do that? Thanks Quote
Administrators PlausiblyDamp Posted October 5, 2003 Administrators Posted October 5, 2003 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 Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
BustaCap Posted October 5, 2003 Author Posted October 5, 2003 That works perfectly. I love simplicity!! Thanks a bunch. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.