C#压缩文件可以使用第三方dll库:ICSharpCode.SharpZipLib.dll: 以下代码能实现文件夹与多个文件的同时压缩.(例:把三个文件夹和五个文件一起压缩成一个zip) 直接上代码,代码来自:http://blog.csdn.net/jk007/article/details/8115825 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Sy
public class ZipBin { public byte[] bytes; //C#读取压缩文件(将压缩文件转换为二进制 public void GetZipToByte(string inpath) { FileStream fs = new FileStream(inpath, FileMode.Open); bytes = new byte[fs.Length]; int count = Convert.ToInt32(fs.Length); fs.Read(bytes, , c
linux下生成core dump文件方法及设置 from:http://www.cppblog.com/kongque/archive/2011/03/07/141262.html core dump的概念: A core dump is the recorded state of the working memory of a computer program at a specific time, generally when the program has terminated a