-
Declaration:
- Procedure WriteLn [([Var F : Text;] [V1 [; V2; ... , Vn)]];
-
Description:
- WriteLn does the same as Write (589) for text files, and emits a Carriage Return - LineFeed
character pair after that. If the parameter F is omitted, standard output is assumed. If no variables
are specified, a Carriage Return - LineFeed character pair is emitted, resulting in a new line in the
file F.
Remark: Under LINUX and UNIX, the Carriage Return character is omitted, as customary in Unix
environments.
-
Errors:
- If an error occurs, a run-time error is generated. This behavior can be controlled with the {$i}
switch.
-
See also:
- Write (589), Read (551), Readln (553), Blockwrite (460)
Listing: refex/ex75.pp