Hi
how Can I read Binary File with Qt "QDataStream ()"
what I want is the code witch reading the binary files Byte by Byte
thanks,
Hi
how Can I read Binary File with Qt "QDataStream ()"
what I want is the code witch reading the binary files Byte by Byte
thanks,
The code is fairly easy.
You have to use QDataStream::readRawBytes(const char*, int).
The QDataStream has to be initialized with a QIODevice, either in the constructor or with setDevice. You will have to pass an opened QFile here.
But I don't suggest reading the data byte by byte, because it will take longer.
You can read it in a buffer, and process it separately.
Regards
thanks very much
Bookmarks