创建 BZIP2
using IronZip;

// Create an empty BZIP2
using (var archive = new IronBZip2Archive())
{
    // Add a text file to the BZIP2
    archive.Add("./assets/sample.txt");

    // Export the BZIP2 file
    archive.SaveAs("output.txt.bz2");
}
NuGet Download
PM > Install-Package IronZip
创建 BZIP2

创建 BZIP2

BZIP2,全称为"Burrows-Wheeler Block Sort Text Compressor",是 Unix 和 Linux 系统中使用的文件压缩实用程序。 它使用.bz2扩展名的更小文件。 它因其高压缩效率而备受青睐,常用于软件分发和数据归档。

BZIP2特别擅长压缩文本数据,解压缩速度相对较快。

了解如何使用IronZIP创建、读取和提取ZIP
在 GitHub 上查看

准备开始了吗?

Nuget Downloads 24,981版本:2026.11刚刚发布