Readln

Declaration:
Procedure Readln [Var F : Text], V1 [, V2, ... , Vn]);
Description:
Read reads one or more values from a file F, and stores the result in V1, V2, etc. After that it goes to the next line in the file (defined by the LineFeed (#10) character). If no file F is specified, then standard input is read. The variables V1, V2 etc. must be of type Char, Integer, Real, String or PChar.
Errors:
If no data is available, a run-time error is generated. This behavior can be controlled with the {$i} compiler switch.
See also:
Read (551), Blockread (458), Write (589), Blockwrite (460)

For an example, see Read (551).