write
const proc: write (in string: stri)
-
Write a string to the standard output file (OUT).
writeln
const proc: writeln
-
Write end-of-line to the standard output file.
The file type of OUT decides how writing end-of-line is done.
It can be done by writing '\n', but other solutions are also
possible.
writeln
const proc: writeln (in string: stri)
-
Write a string followed by end-of-line to the standard output.
The file type of OUT decides how writing end-of-line is done.
It can be done by writing '\n', but other solutions are also
possible.
read
const proc: read (inout string: aVar)
-
Read a word from the standard input file (IN).
Before reading the word it skips spaces and tabs. The function
accepts words ending with " ", "\t", end-of-line or EOF.
The word ending characters are not copied into the string.
When the function is left IN.bufferChar contains the
word ending character (' ', '\t', '\n' or EOF).
read
const proc: read (inout string: aVar, in string: defaultValue)
-
Read a word from the standard input file (IN) or use defaultValue.
Before reading the word it skips spaces and tabs. The function
accepts words ending with " ", "\t", end-of-line or EOF.
If the word is empty defaultValue is assigned to aVar.
The word ending characters are not copied into the string.
When the function is left IN.bufferChar contains the
word ending character (' ', '\t', '\n' or EOF).
readln
const proc: readln (inout string: aVar)
-
Read a line from the standard input file (IN).
The function reads a string up to end-of-line or EOF.
The line ending characters are not copied into the string.
When the function is left IN.bufferChar contains the
line ending character ('\n' or EOF).
readln
const proc: readln (inout string: aVar, in string: defaultValue)
-
Read a line from the standard input file (IN) or use defaultValue.
The function reads a string up to end-of-line or EOF.
If the line is empty defaultValue is assigned to aVar.
The line ending characters are not copied into the string.
When the function is left IN.bufferChar contains the
line ending character ('\n' or EOF).
readln
const proc: readln
-
Discard a line from the standard input file (IN).
The function discards characters up to end-of-line or EOF.
When the function is left IN.bufferChar contains the
line ending character ('\n' or EOF).