PHP:Write w/o deleting next characters?

Makuto9

New member
I am coding a simple forum, and I am having trouble with saving a reply to the file. What the code does is read through the file until it gets to the correct position. It is then supposed to write the comment. What it does do is overwrite the next characters in the file until the comment fits completely. This then merges two discussions. What do I do so it does not overwrite the characters in front of it? If it helps, I am using r+ mode, but I can change that if needs be.
 
Back
Top