I'm trying to open a gz file with Minizip library (built on zlib).
Here is the code:
......
......
unzFile uf = unzOpen("MyFile.gz");
......
But Visual Studio 2013 crashes with this message:
Debug Assertion Failed! file open.c line 98
Expression: ("Invalid file open mode",0)
What could it mean?
A
.gzfile is a single file that's been compressed.A
.zipfile is a compressed archive; i.e. a hierarchical structure of compressed files.tl;dr minizip doesn't support
.gzfiles as it's not a.zipfile.