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 the manifest.xml file for your package:

<dependency>file</dependency>

Tables

The file table has the following entries:



file.new

Creates a new file object, which can then be used to read from or write to it.

Definition

function file.new(path) : file_object

Parameters

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.

Return

file_object file_object

A file object for the provided path.

⚠️ **GitHub.com Fallback** ⚠️