Unicode C++
Unicode C++
GZip Decompress File
See more Gzip Examples
Demonstrates how to uncompress a .gz compressed file to get the uncompressed original file.Chilkat Unicode C++ Downloads
#include <CkGzipW.h>
void ChilkatSample(void)
{
bool success = false;
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
CkGzipW gzip;
success = gzip.UncompressFile(L"qa_data/gzip/something.csv.gz",L"qa_output/something.csv");
if (success != true) {
wprintf(L"%s\n",gzip.lastErrorText());
return;
}
wprintf(L"File successfully uncompressed and extracted from the Gzip compressed format.\n");
}