Question regarding File I/O
What I would like to do is read from a file, one line at a time. I parse through each line to find the byte position that I need to enter text into.
My question is:
Would it be better programming to:
1. Create a duplicate, temporary file to read the byte position from. Then I would open the file I want to write to at that position.
2. Have one file, read from it. Find the position I need to enter data. Then somehow rewind the position I am in that record and write data.