|
For each file:
Open a temp file. Write the code to be added to the temp file. Open the old file. Read that and write the contents to the temp file. Close both files. Rename the temp file to the name of the old file.
If you have failed to properly describe what you need, then toss out this answer, along with your description.
|