Function Read_Line$(File) ; Read a line from the given file LineFromFile$ = ReadLine$(File) ; Keep reading lines until there's a line found that doesn't start with a semicolon While Left$(LineFromFile$, 1) <> ";" ; Make sure the end of the file hasn't been reached yet If Not Eof(File) ; Read a new line LineFromFile$ = ReadLine$(File) EndIf Wend ; Return the first line without a semicolon Return LineFromFile$ End Function
This function reads all kind of data.
When the function returns something, it is always a string.
Just do this:
FloatVar# = Read_Line$(file)
And Blitz converts it automatically into a float, if the line contained a float value.