I have a CSV file which has several hundred lines of data. However, I use "line input #" command to pull entire string of data. It only returns 4 lines of data before EOF is hit. I thought that "line input went to the end of the line" Here is my code:
Dim text, x As Integer, li As ListItem, ImpFile As Integer
ImpFile = FreeFile
Open fName For Input As #ImpFile
' x = 0
Do While Not EOF(ImpFile) ' Loop until end of file.
' x = x + 1
Line Input #1, text ' Read text data
Debug.Print text
Loop
Where does the debug output go? How do I view it? Is there something small that I am missing? The file is greater than 32k though does that matter? Thanks.
Dim text, x As Integer, li As ListItem, ImpFile As Integer
ImpFile = FreeFile
Open fName For Input As #ImpFile
' x = 0
Do While Not EOF(ImpFile) ' Loop until end of file.
' x = x + 1
Line Input #1, text ' Read text data
Debug.Print text
Loop
Where does the debug output go? How do I view it? Is there something small that I am missing? The file is greater than 32k though does that matter? Thanks.