Deflate

C#用Deflate流压缩/解压缩文件
.NET

C#用Deflate流压缩/解压缩文件

17 1

用Deflate流压缩/解压缩文件:Deflate流压缩:using System.IO;using System.IO.Compression;string sourceFile=@"C:\1.txt";string destinationFile=@"C:\1.bin";private const long BUFFER_SIZE = 20480;if ( File.Exists ( sourceFile )){FileStream …