Hello,

I need to write some records to a file and sometimes I need to insert a record in the middle and move the records before it. The problem is that when I use fseek to get to the right place to write a record, then if it's in the beginning / end of the file, fwrite works, but if it's in the middle, it doesn't overwrite the record that was there, neither does it cause an error.
What is the problem?

Thanks in advance.