I've opened a file using the following:
...but the message box only shows about seven lines, even though the file is quite a bit more than that. It seems as though it's not breaking down the "temp.htm" file into separate lines... kind of like it is all one line and the code I use is looking for carriage returns or something. I need to be able to read the file line-by-line, which will allow me to do what I need to with each line.Code:Open "C:\Lab\temp.htm" For Input As 1 Dim U As String While EOF(1) = 0 Line Input #1, U Msgbox U Wend Close #1




Reply With Quote
