-
Declaration:
- Procedure Read ([Var F : Any file type], V1 [, V2, ... , Vn]);
-
Description:
- Read reads one or more values from a file F, and stores the result in V1, V2, etc.; If no file F
is specified, then standard input is read. If F is of type Text, then the variables V1, V2 etc.
must be of type Char, Integer, Real, String or PChar. If F is a typed file, then each of the
variables must be of the type specified in the declaration of F. Untyped files are not allowed
as an argument.
-
Errors:
- If no data is available, a run-time error is generated. This behavior can be controlled with
the {$i} compiler switch.
-
See also:
- Readln (553), Blockread (458), Write (589), Blockwrite (460)
Listing: refex/ex50.pp