So lets say I have file that looks like this:
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
Any help would be great.
Source: Windows Questions C++