system.io

The system.io module provides input/output functionality for console operations.

Import

import system.io as io;

Objects

io.out

Standard output stream for writing to the console.

Methods

io.out.println("Hello, World!");
io.out.print("No newline");
io.out.println("Multiple", "args", 123);

io.in

Standard input stream for reading from the console.

Methods

io.out.print("Enter your name: ");
let name = io.in.readline();
io.out.println("Hello,", name);

See the full API reference for more details.