[Interest] Read a binary file

Syam Krishnan syamcr at gmail.com
Wed Dec 19 17:11:30 CET 2012


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.

regards,

Syam




More information about the Interest mailing list