教程集 www.jiaochengji.com
教程集 >  操作系统  >  windows  >  正文 michael_wp原创:用.net实现zip----6

michael_wp原创:用.net实现zip----6

发布时间:2019-12-13   编辑:jiaochengji.com
教程集为您提供michael,wp原创:用.net实现zip----6等资源,欢迎您收藏本站,我们将为您提供最新的michael,wp原创:用.net实现zip----6资源
//ZipWriter.cs
using System;
using System.Runtime.Serialization;
namespace OrganicBit.Zip {
    /// <summary>Provides support for writing files in the ZIP file format. Includes support for both compressed and uncompressed entries.</summary>
    /// <example>This example shows how to create a ZIP file.
    /// <code>
    /// public static void Add(string zipFileName, string[] entryPatterns) {
    ///     string currentDirectory = Directory.GetCurrentDirectory();
    ///     Console.WriteLine("Creating {0}", zipFileName);
    ///
    ///     ZipWriter writer = new ZipWriter(zipFileName);
    ///
    ///     // buffer to hold temp bytes
    ///     byte[] buffer = new byte[4096];
    ///     int byteCount;
    ///
    ///     // add files to archive
    ///     foreach (string pattern in entryPatterns) {
    ///    foreach (string path in Directory.GetFiles(currentDirectory, pattern)) {
    ///        string fileName = Path.GetFileName(path);

您可能感兴趣的文章:
michael_wp原创:用.net实现zip----1
michael_wp原创:用.net实现zip----5
michael_wp原创:用.net实现zip----6
michael_wp原创:用.net实现zip----4-2
michael_wp原创:用.net实现zip----4
michael_wp原创:用.net实现zip----2
michael_wp原创:用.net实现zip----3
PHP在线压缩zip的函数代码
python中zip是什么函数
php如何读取zip内容?(zip_entry_read函数的使用)

[关闭]
~ ~