next up previous contents index
Next: Release Up: Functions and Procedures Previous: Read

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, Blockread, Write, Blockwrite

For an example, see Read.



Michael Van Canneyt
Thu Sep 10 14:02:43 CEST 1998