Пример #1
0
 public void WriteFile(string path)
 {
     using (var fileStream = new FileStream(path, FileMode.Create))
         using (var zipArchive = new ZipArchive(fileStream, ZipArchiveMode.Update))
         {
             RealHeader.WriteHeader(zipArchive);
             InputLogIo.Write(zipArchive, InputLog, _logKey);
         }
 }
Пример #2
0
        public void ReadFile(string path)
        {
            Path = path;

            using (var fileStream = new FileStream(path, FileMode.Open))
                using (var zipArchive = new ZipArchive(fileStream, ZipArchiveMode.Read))
                {
                    RealHeader = new Header(zipArchive);
                    InputLog   = InputLogIo.Read(zipArchive, out _logKey);
                }
        }