Oberon || Library || Module Index || Search Engine || Definition || Module


Ulm's Oberon Library:
Write


NAME

Write - formatted output

SYNOPSIS

PROCEDURE Int(int: LONGINT; width: LONGINT);
PROCEDURE Real(real: LONGREAL; width: LONGINT);
PROCEDURE Char(ch: CHAR);
PROCEDURE Byte(byte: BYTE);
PROCEDURE Line(s: ARRAY OF CHAR);
PROCEDURE Ln;
PROCEDURE String(s: ARRAY OF CHAR);
PROCEDURE Indent;


PROCEDURE IntS(s: Streams.Stream; int: LONGINT; width: LONGINT); PROCEDURE RealS(s: Streams.Stream; real: LONGREAL; width: LONGINT); PROCEDURE CharS(s: Streams.Stream; ch: CHAR); PROCEDURE ByteS(s: Streams.Stream; byte: BYTE); PROCEDURE LineS(s: Streams.Stream; str: ARRAY OF CHAR); PROCEDURE LnS(s: Streams.Stream); PROCEDURE StringS(s: Streams.Stream; str: ARRAY OF CHAR); PROCEDURE IndentS(s: Streams.Stream);

DESCRIPTION

Write realizes formatted output to streams. All procedures write either to the given stream s (procedures ending in "S") or to Streams.stdout (all other procedures).

Int writes int with at least width characters. Leading blanks are inserted if filling is necessary. Real writes real in exponential format.

Char and Byte write ch resp. byte.

Line writes s and appends a line terminator. Ln writes a line terminator. The line terminator is given by StreamDisciplines. String writes s.

StreamDisciplines maintains a current indentation width which may be utilized by Indent; that is, if the current indentation width is n, Indent prints n spaces.

SEE ALSO

Read
formatted input
Reals
real conversions
StreamDisciplines
definition of line terminator
Streams
stream operations

Edited by: martin, last change: 1997/10/17, revision: 1.5, converted to HTML: 1997/10/17

Oberon || Library || Module Index || Search Engine || Definition || Module