How to insert content into the middle of a file without overwriting the existing content?

John Zukowski

There is no direct support for inserting content in the middle of a file/stream. What you need to do is copy the original content into another file/stream with the new content added where necessary.