io.*

Type Library
Revision Release 2024.3703
Keywords io
See also Reading and Writing Files (guide)

Overview

Standard Lua library to create, write, and read files.

Applications running on a device are “sandboxed”, meaning your files (application images, data, preferences, etc.) are stored in a location that no other application can access. Your files will reside in an app-specific directory for documents, resources, or temporary files. The io library functions allow you to manage these resources.

For more information, see the Reading and Writing Files guide.

Functions

io.close()

io.flush()

io.input()

io.lines()

io.open()

io.output()

io.read()

io.tmpfile()

io.type()

io.write()