website is under construction
Standard Library

I/O

Methods

io.append()

Appends content to the specified file.

io.append('./log.txt', 'message from ghost')

io.read()

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

io.read('./log.txt')

io.write()

Writes content to the specified file. This method completely overrides all content.

io.write(content, './log.txt')