Hello all,
I want to open a file through the FileOpen method, then read through all the lines, making a count for them with an integer and then I want to reset the cursor back to the beginning of the file. This is what my initial code looks like:
Now after that, I want to NOT close the file, but reset the cursor back to the beginning of the file and read through the file AGAIN, only this time I use strLine to grab the data from it (txt file)Code:Dim FilePath As String
Dim cntLines As Integer
Dim strLine As String
FileOpen(1, FilePath, OpenMode.Input)
Do Until EOF(1)
strLine = LineInput(1)
cntLines += 1
Loop
Any suggestions on how to do this?
Thanks in advance,
c(_)
