write to a file

Suppose, I am writing to a file, and after I have done writing, I want to come back to a specific position of the file and insert some lines. How do I do that?

tellp: http://www.cplusplus.com/reference/iostream/ostream/tellp/
Notice that if you go back and write something, you'll be overwriting the existing file
Topic archived. No new replies allowed.