What would be the best way to write up a code so that would allow me to edit text in a data file and then save it. I have no idea on hot to go about it.
Any help would be much appreciated.
This is a discussion on Edit a .dat file. within the C Programming forums, part of the General Programming Boards category; What would be the best way to write up a code so that would allow me to edit text in ...
What would be the best way to write up a code so that would allow me to edit text in a data file and then save it. I have no idea on hot to go about it.
Any help would be much appreciated.
Open the file.
Read the file.
Do whatever you intend to do to the file.
Rewrite the file (from the beginning).
Close the file.