Thanks, You were right, I was using bad function to open my file.
It 's strange that when i try to add a reccord in 'mode pos 0' (from the begining of file + offset), it says EOF reached, but in 'mode pos 1' (from end of the file + offset) it works well.
Anyway i m happy, it now works, thanks again.