@READLINE [VDS6] |
|
| Top Previous Next | |
Syntax:
@READLINE(<identifier>)
@READLINE( CONSOLE )
Description:
This function returns the next line of text from the file <identifier> (or from the console, if CONSOLE is specified.) It should therefore only be used to read data where a line feed character is used to indicate the end of a line, as in a standard text file.
Note: It is much faster to load text files into a string list and then read the lines using list functions such as @NEXT, because the file is loaded into memory and read from there instead of being read from disk each time.
OK:
False if an error occurs reading the file (this includes attempts to read past the end of the file.)
Example:
%N = @READLINE(CONSOLE)
WRITE Hello %N!
See also: