QFile is a QIODevice subclass. QIODevice has low level read and write methods that write byte arrays (C style char* or Qt/C++ QByteArray).
This has nothing to do with QDataStream, that class is for serializing data types in a Qt specific format. Your data format is different so you obviously need to write the "parsing" and "formatting" code into bytes yourself.
Cheers,
_





Reply With Quote

Bookmarks