最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
michael_wp原创:用.net实现zip----6
时间:2022-07-02 11:36:02 编辑:袖梨 来源:一聚教程网
//ZipWriter.cs
using System;
using System.Runtime.Serialization;
namespace OrganicBit.Zip {
///Provides support for writing files in the ZIP file format. Includes support for both compressed and uncompressed entries.
///This example shows how to create a ZIP file.
///
using System;
using System.Runtime.Serialization;
namespace OrganicBit.Zip {
///
///
///
/// 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);
相关文章
-
后宫狂热免费漫画下载最新安装版本 - 后宫狂热弹窗页面看漫画入口
05-17
-
C4D如何创建三维立体刀切馒头模型
05-17
-
时代天华七彩课堂如何看回放
05-17
-
洛克王国世界S2赛季奇遇精灵一览
05-17
-
超星平台登录入口-超星平台网页版在线登录
05-17
-
如何在pycharm中设置编译器
05-17