We tested your programs using the string editor program and with two additional test programs.
Here again is the code for the string editor:
We ran this program using the following two files as input:
Here is the expected output:
Here is code for the two additional test programs:
Here is their expected output: