How do you specify which line of a file you would like to read from?
How do you specify which line of a file you would like to read from?
You don't. You can only read from the current position in the file.
I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo
So what if i would like to change something on the second or third line of an exsisting file in the program. There is no way to do that ?
If you want to read the Nth line:
1. Read N-1 lines.
2. Read the Nth line.
I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo
hmmmm
i think i understand what u mean