The easiest way would be to use a library called Halo2Map.dll, it comes with the ch2r source.. But if you want to do it the hard way, just use the System.IO.FileStream class, and you could also bind a System.IO.BinaryReader/BinaryWriter to the stream to assist you in editing it.