1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33:
using (BinaryReader br = nieuwe BinaryReader (File.Open (dossier, FileMode.Open, FileAccess.Read))) { lange streamLength = br.BaseStream.Length; byte [] bytes = nieuwe byte [streamLength]; probeer { voor (int. i = 0; i < streamLength; i++) { bytes [I] = br.ReadByte (); } } vangst (ex Uitzondering) { Ex Console.WriteLine (. Bericht); } tot slot { ushort num; ushort dossier; klusje F; num = BitConverter.ToUInt16 (bytes, 0); dossier = BitConverter.ToUInt16 (bytes, 2); F = BitConverter.ToChar (bytes, 53); Console.WriteLine (num); Console.WriteLine (dossier); Console.WriteLine (F); } }