Reads an Integer from file and returns it. The function will read as much of the text as can be interpreted as an integer, but will stop at a decimal point, or any other character that cannot be construed as being part of an integer. 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.
readInteger ( file As User ) As Integer
Argument | Type | Description |
---|---|---|
file | User | A file handle previously created by a call to OpenFile. |