System.IO.Stream _Stream;
System.IO.BinaryWriter _Writer;
System.IO.BinaryReader _Reader;
_Stream = new FileStream("c:\\this\\patch.mp.ff", FileMode.Open);
_Reader = new BinaryReader(_Stream);
_Writer = new BinaryWriter(_Stream);
_Reader.BaseStream.Seek(location in decimal hex, ie 1114 is 45A, SeekOrigin.Begin);
var thisByte = _Reader.ReadByte();
_Writer.BaseStream.Seek(location in decimal hex, ie 1114 is 45A, SeekOrigin.Begin);
_Writer.Write(thisByte); //if you are reading and writing bits (you dont need reader if just writing)
_Reader.Close();
_Writer.Flush();
_Writer.Close();
_Stream.Close();
Copyright © 2024, NextGenUpdate.
All Rights Reserved.