file - Windower/packages GitHub Wiki
The file library adds functions for operating on files.
local file = require('file')
❗ Dependency Required
To use this library, you must include
file
in themanifest.xml
file for your package:<dependency>file</dependency>
The file
table has the following entries:
- file.new : Create a new file object
Creates a new file object, which can then be used to read from or write to it.
function file.new(path) : file_object
path string
The path to the file. Always prefer absolute paths, since relative paths will not be relative to the addon directory but to FFXI's current working directory, which is most likely the POL directory.
file_object file_object
A file object for the provided path.