readNumber()

Synopsis

Reads a Number from file and returns it. The function will read as much of the text as can be interpreted as a number . It will stop at any character that cannot be construed as being part of a number . If the line begins with a character that is not part of an integer value, the results are unpredictable.

Note: The file reader functions use a 1024-character buffer, and cannot handle lines longer than 1023 characters.

Alternatives for reading data from text files include the functions readLinesFromFile() and readSimpleDataFile(), the TextFile design , and the ADO.NET library.

Syntax

readNumber ( file As User ) As Number 
Argument Type Description
file User A file handle previously created by a call to OpenFile.