#ZipLib is a Zip, GZip, Tar and BZip2 library written entirely in C# for the .NET platform. It is implemented as an assembly (installable in the GAC), and thus can easily be incorporated into other projects (in any .NET language).#ZipLib was ported from the GNU Classpath ZIP library for use with #Develop (http://www.icsharpcode.net/OpenSource/SD) which needed gzip/zip compression. Later bzip2 compression and tar archiving was added due to popular demand.
ZipLib組件與.net自帶的Copression比較,在壓縮方面更勝一籌,經過BZip2壓縮要小很多,親手測試,不信你也可以試一試。而且這個功能更加強大。下面就是個人做的一個小例子,具體的應用程序源碼: /Files/yank/Compress.rar。