public static void CompressMZipEnc(afh.Application.Log log) { log.WriteLine("gzcomp.cs を圧縮中 ..."); //System.IO.Stream sread=System.IO.File.OpenRead(@"compress-test\gzcomp.cs"); //System.IO.Stream swrite=System.IO.File.OpenWrite(@"compress-test\gzcomp.cs.mwg"); //System.IO.Stream sread=System.IO.File.OpenRead(@"compress-test\test.txt"); //System.IO.Stream swrite=System.IO.File.OpenWrite(@"compress-test\test.txt.mwg"); System.IO.Stream sread = System.IO.File.OpenRead(@"compress-test\target.htm"); System.IO.Stream swrite = System.IO.File.OpenWrite(@"compress-test\target.mwg"); System.IO.Stream comp = CompressionUtil.MZipCompress(sread); afh.File.StreamUtil.PassAll(swrite, comp); swrite.Close(); comp.Close(); sread.Close(); }