how I can modify the ofile object of fstream library, and the remaining data remain save as it was. e.g
ofile: hello world name class
this is the data ofile have and in modification i want to replace the name with "roll number". after modification ofile became
ofile: hello world roll number class
can anybody help me?