File I/O

Overview

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

Applications running on a device is "sandboxed", meaning your files (e.g. application images, data, preferences) 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 File library functions allow you to manage these resources.

Note: Corona does not support creating subdirectories on the device.

More Information

For more information see the Files guide, as well as the Reading and Writing Files in Corona tutorial (blog).