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.
Alternatives for reading data from text files include the functions readLinesFromFile() and readSimpleDataFile(), the TextFile design, and the ADO.NET library.
readNumber ( file As User ) As Number
Argument | Type | Description |
---|---|---|
file | User | A file handle previously created by a call to OpenFile. |