I know this was asked once, but I didn't understand the answer.
Let's say I have a file like this:
Guest list:
jon
mary
paul
luke
Table list:
And then, for example, I want to change the names of the guests. I understood that I need to search for the string "Guest list" and then overwrite everything between "Guest list" and "Table list". But I have no idea how to do that.
I'm using C++, and I prefer using fstream :D
Thanks !
edit:
It seems that writing a completely new file is the best method with relatively small files. I'll probably use this method for what I want to do now. But I'm still really interested in how to handle situations where you need to update a huge file.