I'm trying to read a .SHP file using the specification in Documents. According to the document, I should be reading an Int16 (short, word) first.
But everytime I do, it just returns 0.
Here is my code: (can you help?)
BinaryReader br = new BinaryReader(new FileStream("test.shp", FileMode.Open));
Console.WriteLine("No. Images: " + br.ReadInt16());
Console.WriteLine("A: " + br.ReadInt16());
Console.WriteLine("B: " + br.ReadInt16());
Console.WriteLine("Width: " + br.ReadInt16());
Console.WriteLine("Height: " + br.ReadInt16());
Console.WriteLine("C: " + br.ReadInt32());
Console.ReadKey();