File handling problem - modifying record

I have to make a file (or a database I should say)in which I can read,write,append ---I can do these things easily.

The problem is that how I can rewrite at a particular location.I tried it but the next record is modified..
We can't help you without seeing your code. If there is a lot of it, try removing irrelevant parts.
If there is a lot of it, try removing irrelevant parts.

Or put it on a site like pastebin
i think you are missing seekp() statement that moves record pointer to a specified location

you may visit following tutorial page for this

http://www.cppforschool.com/tutorial/files2.html
Topic archived. No new replies allowed.