Skip to content

Created .gz-archive not correct? #4

Description

@BorysLysyansky

I have tried to start an example output_test.cpp:
#include "ozstream.hpp"
#include <fstream>
int main(void) {
std::ofstream os("test.txt.gz");
zstream::ogzstream gz(os);
for (size_t i = 0; i < 2000; i++)
gz << i << std::endl;
return 0;
}
compiled it with the:
g++ -I.. zlib1.dll output_test.cpp
have run the binary:
./a.exe
The file test.txt.gz was created, but as I've tried to unzip it with:

gzip.exe -d test.txt.gz

I've got an error:
gzip: test.txt.gz: invalid compressed data--length error

What does it mean? Is it possible to decompress the obtained file with some
"standard" software?

Borys

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions