HP Pascal/iX Reference Manual (31502-90022)

10- 26
writeln
Usage
writeln
(f)
writeln
(f, e)
writeln
(f, e1, ..., en)
writeln
writeln
(e)
writeln
(e1, ..., en)
Parameters
f
A file variable for a text file opened in the output state. The
system uses the standard file output if
f
is omitted.
e
A variable or expression whose type is not FILE and does not contain
a component of type FILE.
Description
The procedure writeln
(f, e)
writes the value of the expression
e
to the
textfile
f
, appends an end-of-line marker, and places the current
position immediately after this marker. After execution, the file buffer
f^
is undefined, and eof
(f)
is true. You may write the value of
e
with
the formatting conventions described for the procedure write.
The call writeln
(f, e1,..., en)
is equivalent to
write(f,e1);
write(f,e2);
.
.
.
write(f,en);
writeln(f)
The call writeln without the file or expression parameters effectively
inserts an end-of-line marker in the standard file output.
Example
writeln(fil_var)
writeln(fil_var,exp:4)