Hi all, I want to make a procedure to append lines to a file, in the position i want. I've tried to do this opening the file in mode "r+", but if i do this, it writes in the document from a position x, but overwritting the text that is in the document. If i open de document with (a+) it writes always at the end of the document. What i'm doing bad?