利用 SharpZipLib方便地压缩和解压缩文件
最新版本的SharpZipLib(0.84)增加了很多新的功能,其中包括增加了FastZip类,这让我们可以非常方便地把一个目录压缩成一个压缩包,经测试可以很好地支持文件中包含中文以及空格的情况。

 

 1        }

上面代码需要引用:

利用 SharpZipLib方便地压缩和解压缩文件(转)using ICSharpCode.SharpZipLib.Zip;
利用 SharpZipLib方便地压缩和解压缩文件(转)
using System.IO;

使用方法就不介绍了。

你可以到其官方网站下载最新版本的SharpZipLib:

http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx
或者直接使用该链接下载:

  • Compiled assembly with documentation and install scripts Download [488 KB]
  • Source code and samples Download [622 KB]
  • Help file only Download [485 KB]

相关文章:

  • 2022-01-09
  • 2022-12-23
  • 2021-12-10
  • 2021-09-14
  • 2021-10-30
  • 2021-08-04
  • 2022-02-07
猜你喜欢
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-06-17
相关资源
相似解决方案