Open in QIODevice::Append mode and then seek to the beginning of the file before writing.
Open in QIODevice::Append mode and then seek to the beginning of the file before writing.
I know, but you still have to open in append mode, otherwise your file will be truncated. After you open in append, you can seek to the beginning of the file and replace its contents there.
Bookmarks