Writeln (Procedure)

The writeln procedure writes the contents of its arguments to the file F. F may be a typed file, a text file or be missing. If F is missing, the standard output device, e. g. the console or a shell window, is used. In case of a typed file, all arguments must share the same type. If F is a text file, numeric types are converted to strings to be human-redable.

In contrast to the write procedure, writeln appends a line feed to the output. If writeln is called without an argument or with F only, a linefeed only is produced.

Syntax
procedure writeln(Args: Arguments); procedure writeln(var F: Text; Args: Arguments);

Example
for i = 1 to 10 do begin i = i * 10; writeln(i); end;