Skip to content

Stdout

1 min read

Import: import system.io;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

Stdout

Standard output as a byte stream. Obtain it through System.stdout.

public class Stdout: Writer

write

Writes bytes and returns the number accepted; failures leave completed writes in effect. Call flush to deliver any buffered bytes.

public unique fun write(data: byte[]): Result<int, IoError>

flush

Delivers buffered output; returns an I/O error when flushing fails.

public unique fun flush(): Result<Unit, IoError>