C ++中的Zip文件 [英] Zip Files in C++

查看:58
本文介绍了C ++中的Zip文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我需要一个可以对一些文件进行zip \ unzip压缩的zip库(或函数),但是我尝试了zlib或gzip,但找不到在单个.zip中将多个文件存档的解决方案(或.tar或.gzip).

有人有想法吗?
非常感谢您

Hi all, I need a zip library (or a function) that can zip\unzip a few files, i tried zlib or gzip I can''t find a solution to archive more than one file in a single .zip (or .tar, or .gzip).

Does anyone have ideas?
Thank you very much

推荐答案

这是一个很好的,众所周知的开源项目:
http://www.7-zip.org/ [
Here is a nice, well known, opensource project:
http://www.7-zip.org/[^]

Regards
Espen Harlinn


要使用zlib归档多个文件,您需要先将所有文件与tar归档一起打包. Tar不会压缩文件,它只会将多个文件打包为一个文件.使用tar打包多个文件后,请对tar存档文件应用zip压缩.
To archive multiple files with zlib you need to pack all of them with tar archive first. Tar won''t compress the files it just packs multiple files into one. After packing multiple files using tar, apply zip compression on tar archive file.


这篇关于C ++中的Zip文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆