View Full Version : QDataStream

23rd August 2006, 14:20
Hello all,
What's up here? I have a binary file. I want to
1) append data to the end of the file.
2) change some data at some position in the file

how do I do that? please, don't tell me I have to read in all the data, change it/append it and write all the data again!

What am I supposed to do if my file is megabytes big, and I need to write something every second?

Anybody using QDataStream?


23rd August 2006, 15:40
You can use QIODevice::seek() to read/write to a specified location in the file.