0
C++ file handling
Hi guys. Can someone explain me , how to change data in a cartain line: File.txt Mike John Carl HOW CAN I GET TO THE SECOND LINE AND CHANGE JOHN INTO MARK.
3 Answers
0
You cant go to a specific Line and Edit it, what you could do is search of a String (in this case "Mark") and then change it to "John".
If you want to delete a line in the middle of a file you will have to re-write the subsequent lines.
0
How can I do that