Library / System / Runtime / Stdio
Stdio
The console: standard output, standard error, standard input. stdio-spec.md §2.
Methods 12
METHOD print(REFERENCE String text) RETURNS | int64reads
Write text to stdout verbatim — no trailing newline.
METHOD printline(REFERENCE String text) RETURNS | int64reads
Write text to stdout followed by a newline.
METHOD formatPrint(REFERENCE String tmpl, FormatArgument args...) RETURNS | int64reads
Render tmpl against args (stdio-spec.md §4) and write the
result to stdout — no trailing newline.
METHOD formatPrintline(REFERENCE String tmpl, FormatArgument args...) RETURNS | int64reads
Render tmpl against args and write the result to stdout
followed by a newline.
METHOD printBytes(REFERENCE ByteBuffer data) RETURNS | int64reads
Write the raw bytes of data to stdout — no formatting.
METHOD printErr(REFERENCE String text) RETURNS | int64reads
Write text to stderr verbatim — no trailing newline.
METHOD printlineErr(REFERENCE String text) RETURNS | int64reads
Write text to stderr followed by a newline.
METHOD formatPrintErr(REFERENCE String tmpl, FormatArgument args...) RETURNS | int64reads
Render tmpl against args and write the result to stderr.
METHOD formatPrintlineErr(REFERENCE String tmpl, FormatArgument args...) RETURNS | int64reads
Render tmpl against args and write the result to stderr
followed by a newline.
METHOD printBytesErr(REFERENCE ByteBuffer data) RETURNS | int64reads
Write the raw bytes of data to stderr — no formatting.
METHOD read(int32 length) RETURNS ByteBufferreads
Read from stdin. length > 0 reads up to that many bytes;
length == 0 reads one line, the \n delimiter included.
Comma shape: loaded always holds what was read; atEof is
TRUE when end-of-input was reached before the request was met.
METHOD readline() RETURNS Stringreads
Read one line from stdin, the trailing \n stripped. Comma
shape: at end-of-input line is empty and atEof is TRUE,
distinguishing EOF from a genuine blank line.