[KDE-India] Reading Binary file

Till Adam adam at kde.org
Sat Jan 7 13:30:23 CET 2006


On Saturday 07 January 2006 12:57, Aditya Mooley wrote:

> QFile userfile(fileName);
>     if ( !userfile.open(IO_ReadOnly) ) {
>       QMessageBox::information(this, tr("HTTP"),
>         tr("Unable to open the file %1: %2.")
>         .arg(openFilesPath).arg(userfile.errorString()));
>     }
>     fileSize = userfile.size();
>     userfile.readAll();

Hm, you're not doing anything with teh read data here, so I can't really tell 
what the problem could be. Can you post the full source, maybe, or send it to 
me in private mail?

Till
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-india/attachments/20060107/4e6a94e6/attachment.pgp


More information about the KDE-india mailing list