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