So lets say I have file that looks like this:
Bob
John
Leo
delete Leo
Ashley
delete John
I know it would be pretty straight forward to just delete the line that contains "delete" but how would I also search for the name in the file to be deleted as well? I would want the updated file to look like
Bob
Ashley
Any help would be great.
Source: Windows Questions C++