using System.IO;
using System.IO.Compression;
FileStream fs = new FileStream("c:\\wssplex.gz",FileMode.CreateNew);
GZipStream gz = new GZipStream(fs, CompressionMode.Compress);
StreamWriter sw = new StreamWriter(gz);
sw.Write("data");
sw.Close();
using System.IO.Compression;
FileStream fs = new FileStream("c:\\wssplex.gz",FileMode.CreateNew);
GZipStream gz = new GZipStream(fs, CompressionMode.Compress);
StreamWriter sw = new StreamWriter(gz);
sw.Write("data");
sw.Close();
http://msdn.microsoft.com/ko-kr/library/system.io.compression.gzipstream.aspx
댓글 없음:
댓글 쓰기