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
println(...args)- Print arguments followed by a newlineprint(...args)- Print arguments without a newline
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
readline() -> string- Read a line from stdin
io.out.print("Enter your name: ");
let name = io.in.readline();
io.out.println("Hello,", name);
See the full API reference for more details.