I'm trying to make a program that edits the text from a file and saves the text with a different name. I know how to copy the file with a different name, but I don't know how to alter the text inside it.
Lets say I have a file called MyTextFile.txt with the content "abcd". I want the program to create a file called MyTextFileModified.txt with the content "bcde"
Also, I'd like it to work for long files, and maybe for word files.

