Skip to content

IO

This module provides basic input/output functionality.

Printing to standard output

Function readln reads a line from the standard input. This function is non-blocking and may throw and :ioerror if there is an I/O error.

Usage:

line = readln

Reading a character from the standard input

Function read reads a single character from the standard input. This function is non-blocking and may throw and :ioerror if there is an I/O error.

Usage:

character = read

Reading a line from the standard input

Function readln reads a line from the standard input. This function is non-blocking and may throw and :ioerror if there is an I/O error.

Usage:

line = readln

Last update: July 3, 2020