DumontEXE 0.0.1
DumontTest.cpp
00001 
00002 #include "DumontEXE.h"
00003 
00004 #include <QFile>
00005 #include <QByteArray>
00006 
00007 void DumontEXE::test(void)
00008 {
00009   qDebug( "compressing" );
00010 
00011   QFile fileIn("C:/Commence/KES.mwp/Explorer/Dumont,formsizetest.bas");
00012 
00013   if( fileIn.open(QIODevice::ReadOnly) )
00014   {
00015     QByteArray baUncompressed = fileIn.readAll();
00016 
00017     QByteArray baCompressed = qCompress( baUncompressed, 9 );
00018 
00019     QFile fileOut("C:/Commence/KES.mwp/Explorer/Dumont,formsizetest.compressed.bas");
00020 
00021     if( fileOut.open(QIODevice::WriteOnly) )
00022     {
00023       fileOut.write( baCompressed.toBase64() );
00024     }
00025 
00026   }
00027 
00028   qDebug( "done" );
00029 
00030 }
00031 
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties




~ ~ ~ ~ ~ ~
Source Code without Comments is like a Cranberry Garland
without the berries. Comment your Code!
 
Commence Database User Support Group Forum
http://newsgroup.showoff-db.org/
~ ~ ~ ~ ~ ~
Author: Mark Petryk
Lorimark Solutions, LLC
mark@lorimarksolutions.com