Hi - I saw this online, but it is not complete example for me. It only extracts the one file. I want to extract all files in a zip by using ZLib and minizip
#include <zip.h>
int main()
{
//Open the ZIP archive
int err = 0;
zip *z = zip_open("[login to view URL]", 0, &err);
//Search for the file of given name
const char *name = "[login to view URL]";
struct zip_stat st;
zip_stat_init(&st);
zip_stat(z, name, 0, &st);
//Alloc memory for its uncompressed contents
char *contents = new char[[login to view URL]];
//Read the compressed file
zip_file *f = zip_fopen(z, name, 0);
zip_fread(f, contents, [login to view URL]);
zip_fclose(f);
//And close the archive
zip_close(z);
//Do something with the contents
//delete allocated memory
delete[] contents;
}
I'm computer engineering TA with 10+ years of experience.
I'm experienced with data structures and algorithms , computation theory , discrete math and competitive programming
Experienced using compression libraries and made fast compression techniques in C/C++ before
will deliver fully commented code within few hours perfectly do your requirements
Hello,
I am a C/C++ programmer with some experience with zlib as used by the libpng library for reading image files. Getting libraries to work in one's own source code is indeed not trivial, talking from my experience with libraries such as libjpeg and libpng. It will take me some time to did into their documentation but as usual I will eventually get it to work. Do you want the project to be done in C or C++?
Regards
hi, I have a lot of experience with C Programming. If you contact me I can have your program written in an hour or two.
Thank you for providing a detailed description, because I am very confident in my ability to perform this task.
Hope to hear from you.
Hi I'm new here
I have 5 years of experience working with both of them, I also participate in codeforces competitive programming contest so I have experience solving complex computational problems and debugging!!. I always try to use them in the most efficient and simple way possible.
I can assure you that I always give my best in every job.
Best regards