Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
For i = 1 to 9
if objTextFile.AtEndOfStream Exit For
objTextFile.ReadLine
Next i
Maybe a file in the kB range rather than MB, I guess?strongm said:And how might we characterise "not very big"?
strongm said:I've certainly used your suggested solution in the past (read the entire contents, split by CrLf) with text files well over 100Mb in size
2009luca said:the txt file can have approx 2.500.XXX lines, and i need to get line by line from line number 589.458 to 600.000...
Dim strTextLine As String
Dim L As long
Open [red]"C:\Temp\MyTextFile.txt"[/red] For Input As #1
Do While Not EOF(1)
L = L + 1
Line Input #1, strTextLine
If L > [blue]589457[/blue] Then[green]
'Do your magic here[/green]
End If
If L = [blue]600000[/blue] Then
Exit Loop
End If
Loop
Close #1