C
crea
This is a simple question, but I have never found an answer to this and been
thinking about it. Plus not sure if this is the right forum, but not sure
where to put this...I guess some kind of general programming guestion.
So we open a file with iofstream and then write /save some text to file.
Lets say we save a text:
"Hello World!!"
To a file HW.txt.
Now, is it possible to delete the character 'o' from the file without
deleting the file HW.txt first?
Currently I think the only way to do this is to read the whole data from
file to a string and then delete it from the string and then save the whole
string to the file.
thinking about it. Plus not sure if this is the right forum, but not sure
where to put this...I guess some kind of general programming guestion.
So we open a file with iofstream and then write /save some text to file.
Lets say we save a text:
"Hello World!!"
To a file HW.txt.
Now, is it possible to delete the character 'o' from the file without
deleting the file HW.txt first?
Currently I think the only way to do this is to read the whole data from
file to a string and then delete it from the string and then save the whole
string to the file.