Standard Library - I/O Functions

print

sub print any...

Description

Prints the given arguments to the standard output stream, with no separator between them.

Example

print "Hello, ", "world!"

ask

fn ask str -> str

Description

Asks the user for input and returns it.

Example

name = ask("What is your name? ")
print "Hello, ", name

read

fn read str -> str

Description

Reads the contents of a file and returns it as a string.

Example

contents = read("file.txt")
print contents