zip and unzip file c++

hakuna matata picture hakuna matata · Aug 17, 2012 · Viewed 25.8k times · Source

I want to write code that zips a folder to a .zip file, or unzips a .zip file into a folder. I believe I need some library that supports it, am I right? If so, is there a specific library I should use? I want to write the code in C++ on a Linux machine (Ubuntu). Thanks for the help.

Answer

user827992 picture user827992 · Aug 17, 2012

I suggest zlib, it's in C but is heavily tested, used for years, and it's portable almost on every platform that you can imagine.