readInteger()

Synopsis

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.

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

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