Comprehensive Windows framework to develop in Lua
modules > sys > File > constructor

sys.File (filename) constructor

The File constructor returns a File value, representing an abstraction of a file (that may or may not exist).



A string representing the filename. The file may exist physically on disk or not. To create the file on a disk, use the File:open() method with "write" or "read/write" mode.
If a relative path is given to the File constructor, it will be converted to an absolute path (relative to the current working folder).