如何将文件夹中的多个文件压缩为单个Gzip文件(.gz) [英] How to compress multiple files in a folder into a single Gzip file(.gz)

查看:1427
本文介绍了如何将文件夹中的多个文件压缩为单个Gzip文件(.gz)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想将多个.txt文件压缩成单个GZIP(.gz)文件。任何人都可以帮我解决这个问题。我想用C#.net 3.5版开发。







谢谢和问候,


Anil Kumar

解决方案

GZip在流上运行,支持您需要实现某种文件的多个文件首先是收集格式(如TAR等),更好的选择是压缩到zip等多文件格式,试试这个(也有TAR): https://sharpcompress.codeplex.com/ [ ^ ]

Hi every one,

I want to compress multiple .txt files into single GZIP(.gz) file. Can any one help me out for sorting out this issue. I want to develop using C#.net 3.5 version.



Thanks & Regards,

Anil Kumar

解决方案

GZip operates on a stream, to support multiple file you need to implement some sort of file collection format first (like TAR etc.), a better option is to compress to a multi-file format like zip etc., try this (also has TAR): https://sharpcompress.codeplex.com/[^]


这篇关于如何将文件夹中的多个文件压缩为单个Gzip文件(.gz)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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