摘要:
利用 SharpZipLib方便地压缩和解压缩文件最新版本的SharpZipLib(0.84)增加了很多新的功能,其中包括增加了FastZip类,这让我们可以非常方便地把一个目录压缩成一个压缩包,经测试可以很好地支持文件中包含中文以及空格的情况。/// <summary> /// Create a zip archive. /// </summary> /// <param name="filename">The filename.</param> /// <param name="directory" 阅读全文
posted @ 2012-11-08 16:53
Black Bean
阅读(1143)
评论(0)
推荐(0)
摘要:
一。压缩文件,生成文件流using System;using System.Collections.Generic;using System.Text;using System.IO;using ICSharpCode.SharpZipLib.Zip;using ICSharpCode.SharpZipLib.Core;namespace TimeInterval{ public class ZipFileBuilder : IDisposable { private bool disposed = false; ZipOutputStream zipS... 阅读全文
posted @ 2012-11-08 11:27
Black Bean
阅读(526)
评论(0)
推荐(0)
浙公网安备 33010602011771号