HP Pascal/iX Reference Manual (31502-90022)

10- 18
readln
Usage
readln
(f)
readln
(f, v)
readln
(f, v1, ..., vn)
readln
readln
(v)
readln
(v1, ..., vn)
Parameters
f
A textfile variable. The system uses the standard file input if
f
is omitted.
v
The name of a variable or component of a structure whose type is not
FILE and does not contain a component of type FILE.
Description
The procedure readln
(f)
reads zero or more values from a textfile and
then advances the current position to the beginning of the next line.
The operation performs implicit data conversion if
v
is not type char,
string, or PAC. The call readln(f,v1,...,vn) is equivalent to:
read(f,v1,...,vn);
readln(f);
If the parameter,
v
, is omitted, readln simply advances the current
position to the beginning of the next line.
Example
readln(file)
readln(file,variable)
readln(file,variable1,...,variablen)
readln(variable)
readln(variable1,...,variablen)
readln