I have a code like this:
I got the result:Code:QByteArray content= file->readAll(); qDebug()<<"File size is "<<file->size(); qDebug()<<"Array1 size is "<<content.size();
File size is 77274
Array size is 1543
I have also get this:
The file content is normal, but readAll() size is 0Code:file->write(reply->readAll()); qDebug()<<"readAll() size is "<<reply->readAll().size();
This why. I think readAll() will read all lines from the file and they should at least has similar size.