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