public static double readDouble(BinaryReader reader) { byte[] bytes = reader.ReadBytes(8); double value = BitConverter.ToDouble(bytes, 0); return value; }