hello guys!
I need help with some file updating routines.
Lets imagine I have a file with the following contents:
---------file start--------
john 2 5 6 7 8
guy 3 65 6 6 3 6 6
nash 3 3 5 6 666 6946
philip 3 3 6
--------file end--------
well the file is basically a data-bank and EACH LINE is used to store some variables used in the program.
The problem is... I want to update , for example, nash.
How do I make a routine to erase curent nash data (3rd line) and replace a new 3rd line in my file? Notice that I just want to replace the 3rd line and Im not intended to change the other lines.
I've being tring several codes using fstreams i/o implements withouth results...
please help!
Thanks a lot,