Yes.
Yes.
Mainframe assembler programmer by trade. C coder when I can.
The two above posts are correct. What needs to happen is to read in your original file while writing out your file data to another file while appending your string when appropriate, then continue writing your original file data.
When ever you need to merge two files together, there will be three files needed to get this accomplished, 2 for reading in data and a third for writing and or appending to an existing file.