Currently in Beta 🌸🌸

IO

Provides input and output facilities related to files.

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')