in reply to Re: Reading Text Lines
in thread Reading Text Lines

And if you're going to do this kind of thing frequently it may make sense to build an index file with line numbers mapped to offsets from tell and then use seek to jump straight to that location in the file.