jstiegelmeyer
Programmer
Quick overview of question:
If I open a text file with the Open Statement in Sequential Mode, is there any way to jump to a specific line number?
----------------------------------------------------------
I know that it is possible to jump to a specific byte, or char position using the Seek Statment, but is there a way to jump to a specific line?
Here's how I open the file:
Open "MyFile.txt" For Input As #1
I'd like to be able to move to Line #3.
Does anyone know of a good way to do this?
MyFile.txt:
This is line #1
This is line #2
This is line #3. I want to display this line.
This is line #4.
This is line #5.
If I open a text file with the Open Statement in Sequential Mode, is there any way to jump to a specific line number?
----------------------------------------------------------
I know that it is possible to jump to a specific byte, or char position using the Seek Statment, but is there a way to jump to a specific line?
Here's how I open the file:
Open "MyFile.txt" For Input As #1
I'd like to be able to move to Line #3.
Does anyone know of a good way to do this?
MyFile.txt:
This is line #1
This is line #2
This is line #3. I want to display this line.
This is line #4.
This is line #5.