If you are trying to find a line by line-number and and you have fixed-length lines (all lines are the same length). Then you could seek to move to the correct location in the file and then read in the data. If the lines are not fixed-length then you will have to examine every line, counting line numbers and just not processing the ones you don't care about.
If you are trying to extract lines based on their contents, then you will have to examine each line in the file. In order to determine if you are interested in it.
In reply to Re: Writing files
by lhoward
in thread Writing files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |