Let's say I have an input file and an output file. The input file reads something like this when I open it:
Happy birthday to everyone!
Then I enter a string that I want to remove from the string from the data that was read and write it to the output file. For example, if I remove 'at', I will get this:
Hppy birhdy o everyone!
How can I use str.erase or another string method to do this?