def get_value_at_file_position(position)
            @file.seek(4 + position * 4)
            bytes = @file.read(4)

            begin
                value = bytes[0].ord * 256**0 + bytes[1].ord * 256**1 + bytes[2].ord * 256**2 + bytes[3].ord * 256**3
                result = unpack(value)
            rescue
                result = 0
            end

            result
        end
def get_value_at_file_position(position)
            @file.seek(4 + position * 4)
            bytes = @file.read(4)

            begin
                value = bytes[0].ord * 256**0 + bytes[1].ord * 256**1 + bytes[2].ord * 256**2 + bytes[3].ord * 256**3
                result = unpack(value)
            rescue
                result = 0
            end

            result
        end
Loads a value from the n-th position in the EGM file. Every position
 is a 4-byte real number.