DotNetZip - 用C#、VB等任意語言進行Zip與Unzip操作

jopen 12年前發布 | 28K 次閱讀 DotNetZip .NET開發

DotNetZip是一個易于使用,快速的類庫和工具集用于操作ZIP文件和文件夾。DotNetZip支持所有.Net語言包括:VB、C#。利用DotNetZip能夠很方便實現:操作、讀取、抽取和更新zip文件。支持Mono 和 MS .NET。以下是使用C#來創建一個ZIP文件的例子:

 using (ZipFile zip = new ZipFile())
 {
     // add this map file into the "images" directory in the zip archive
     zip.AddFile("c:\\images\\personal\\7440-N49th.png", "images");
     // add the report into a different directory in the archive
     zip.AddFile("c:\\Reports\\2008-Regional-Sales-Report.pdf", "files");
     zip.AddFile("ReadMe.txt");
     zip.Save("MyZipFile.zip");
 }

項目主頁:http://www.baiduhome.net/lib/view/home/1326764724858

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!