Example #1
0
        public void WriteFile(string path)
        {
            var file = new FileStream(path, FileMode.Create);

            RealHeader.Write(file);
            InputLogIo.Write(file, InputLog, RealHeader.TextFormat);

            file.Close();
        }
Example #2
0
        public void ReadFile(string path)
        {
            Path = path;

            var file = new FileStream(path, FileMode.Open);

            RealHeader = new Header();
            RealHeader.Read(file);

            file.Seek(RealHeader.ControllerDataOffset, SeekOrigin.Begin);
            InputLog = InputLogIo.Read(file, RealHeader.ControllerTypePort1, RealHeader.ControllerTypePort2, RealHeader.TextFormat);

            file.Close();
        }