I have a program that saves and append data in a text file.
This is what a regular txt file would look like.
-----info.dat----- //not included in the text file
1 Dwyane Wade 3000
2 Kobe Bryant 24000
3 Lebron James 6000
4 Stephen Curry 3500
5 Carmelo Anthony 15000
But my problem is how to modify the text file.. Example if i wanted to modify the account of Lebron JAmes, change his name to king James and if i wanted to remove Stephen Curry from the file along with the numbers. How would i do that without modifying the other text using fstream. Please help me.