READLN - read line from text file.

Usage:

readln(f,v);

Where:

f
is a file variable that has been opened for reading using "reset", "openf", or some other means. It must have the type "text". If this argument is omitted, the default input unit "input" is assumed.
v
is a variable whose type is "char", "integer", a subrange of either "char" or "integer", "real", or "packed array [1..N] of char". If this argument is omitted, "readln" simply discards the rest of the line it is reading, up to and including the new-line character on the end.

Description:

The "readln" procedure reads an input line from the text file "f" and stores values obtained from that line in the variable "v". Any text remaining on the line is discarded, up to and including the new-line character on the end.

A call of the form

readln(f,v1,v2,v3,...,vN);

is equivalent to

read(f,v1);
read(f,v2);
   ...
read(f,vN);
readln(f);

See Also:

expl pascal lib read

expl pascal lib get

Copyright © 1996, Thinkage Ltd.