0
How do I specifically edit files using fstream in C++?
I tried indexing the lines to find things and replace them. But I am getting a problem again and again.
1 Answer
+ 5
One code worth ten thousand explanation!
It'd be great to attach it here in order to pin down the problem and lead you to the right direction, but if you want a random suggestion then store the file's content line by line in an array then edit the copied content there, and finally write the content back to file.