io — Input/Output functions

Output

io.print(obj)

Prints an obj to stdout.

File handling

io.open(filename, mode)

Opens a file with the specificied mode. Returns a File object.

File.read(len)

Returns len bytes of the file.

File.write(str)

Writes str to the file.

File.close()

Closes the file.

Project Versions

Table Of Contents

Previous topic

Library Reference

Next topic

os — Operating system interfaces

This Page