I want to get the source code of a web page. I have tried
Dim bFile() As Byte ' Retrieving a binary file.
bFile() = Inet1.OpenURL _
' Write file to disk.
Open "C:\web\main.htm" For Binary Access Write As #1
Put #1, , bFile()
I have also tried opening the webpage in a richtextbox and saving as a file.
The problem is I want the file that I save to be exactly the same, line for line as the document Im downloading. Doing it both of these ways the file I get back is a mass of text on the first few lines. Adter I get the file I want to be able to go through it line by line.
I hope this is clear enough