Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zip and unzip file c++ [closed]

Tags:

c++

linux

zip

unzip

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.

like image 693
hakuna matata Avatar asked Aug 17 '12 19:08

hakuna matata


1 Answers

If you want a higher-level way of doing this, you can call the zip and unzip commands directly from C++ using system() (or other process-starting mechanism). These utilities are available by default in Ubuntu.

like image 52
Greg Hewgill Avatar answered Sep 24 '22 18:09

Greg Hewgill