Basic input/output operations.
Prints a string followed by a newline.
Prints an integer.
Prints a string without a newline.
Alias for print.
Alias for print_str.
Alias for print_int.
Reads the contents of a file at the given path. Returns Ok(content) on success, Err(message) if the file is not found or empty.
Writes content to the file at path. Returns Ok(result) on success, Err(message) on failure.
Reads a line from standard input. Returns Ok(line) on success, Err(message) if no input is available.
load std.io
io.println("hello, world")
io.print_no_newline("count: ")
io.print_int_val(42)
let content = io.read_file("data.txt")?
let ok = io.write_file("out.txt", "data")?
let line = io.read_line()?