public static float readFloat(BinaryReader reader) { byte[] bytes = reader.ReadBytes(4); float value = BitConverter.ToSingle(bytes, 0); return value; }