/ Published in: C++
URL: http://lists.trolltech.com/qt-interest/2006-07/thread00070-1.html
decompress can be made similarly. Qt compression cannot handle folders, you have to manage this.
Expand |
Embed | Plain Text
/* compress files */ QFile inFile("test.txt"); inFile.open(QIODevice::ReadOnly); QByteArray ba = inFile.readAll(); QFile file("test.gz"); file.open(QIODevice::WriteOnly); QDataStream out(&file); out << qCompress(ba);
You need to login to post a comment.
