E
electrixnow
in VC++ Express Edi
Is their a way to replace one line of TEXT in an existing text file. I
now open it then
read in the data, once I have found somthing that needs updating, I
need to overwrite
that one line only and continue reading the rest of the file to check
for other line that
may need updates.
How can this be done with fstream.
I am reading about stream pointers but have not yet found anything on
overwriting a
line of text on an existing file.
If I could overwrite the line just after a getline was done that would
be great. Would need
to index -1 line write over the line and then would I need to index +1
lines for the next
getline?
Not sure how to do this.
any comments or suggestions about the issue.
Thanks
Is their a way to replace one line of TEXT in an existing text file. I
now open it then
read in the data, once I have found somthing that needs updating, I
need to overwrite
that one line only and continue reading the rest of the file to check
for other line that
may need updates.
How can this be done with fstream.
I am reading about stream pointers but have not yet found anything on
overwriting a
line of text on an existing file.
If I could overwrite the line just after a getline was done that would
be great. Would need
to index -1 line write over the line and then would I need to index +1
lines for the next
getline?
Not sure how to do this.
any comments or suggestions about the issue.
Thanks