Mark JosΓ© Basilios for code and link to FSO. You will use it.
BUT: I would not go along the route ReadAllTextFile = f.ReadAll, since it can be several gigabytes (who knows?).
INSTEAD:
- open new file
- write prefix lines
- read line by line from the old file, write to the new file
- ( )
- β