2009年8月13日

CopyFile

摘要: public void CopyFile(string sourcepath, string destpath){using (FileStream fs = new FileStream(sourcepath, FileMode.Open, FileAccess.Read)){using (FileStream fs2 = new FileStream(destpath, FileMode.Cr... 阅读全文

posted @ 2009-08-13 13:08 Acor 阅读(170) 评论(0) 推荐(0) 编辑

SharpZipLib使用示例

摘要: SharpZipLib是一个使用C#编写的Zip操作类库,在VB.NET、C#或其他的.NET语言中都可以使用它创建Zip文件、并进行读取和更新等操作。SharpZipLib目前的版本为0.85,下边通过几个例子来说明它的使用(使用前需引用命名空间ICSharpCode.SharpZipLib.Zip)。1.创建zip文件,无法添加文件夹using(ZipFilezip=ZipFile.Creat... 阅读全文

posted @ 2009-08-13 13:00 Acor 阅读(320) 评论(0) 推荐(0) 编辑

导航