[Interest] Read a binary file
Yuriy Rusinov
yrusinov at gmail.com
Wed Dec 19 18:56:34 CET 2012
Hello, Syam !
<syamcr at gmail.com> wrote:
> On 12/19/2012 02:45 PM, Yuriy Rusinov wrote:
>> for (int i=1; i<=na; i++)
>> {
>> char * colData = new char [nd2*sizeof (unsigned long)];
>> qint64 colLength = fData->readLine (colData, nd2*sizeof
>> (unsigned long));
>
> Why would you use readLine() for a binary file?
> The concept of a 'line' is for text files. You should use read() instead.
I tried it, but nothing changes.
--
Best regards,
Sincerely yours,
Yuriy Rusinov.
More information about the Interest
mailing list