M
martin
Hi, I have a question regarding reading a file.
I like to read a file (let's say FILE1) line by line and print the
lines that match a certain criteria to another file.
The question is, on second pass do I need to first close FILE1 and then
reopen it (with read access). Or is there a better way to do it, to
basically go back to the beginning of the file as if I am opening it
for reading for the second time.
Thanks. Martin
I like to read a file (let's say FILE1) line by line and print the
lines that match a certain criteria to another file.
The question is, on second pass do I need to first close FILE1 and then
reopen it (with read access). Or is there a better way to do it, to
basically go back to the beginning of the file as if I am opening it
for reading for the second time.
Thanks. Martin