# Class: fileloader

--- DISABLED ---Luxinia's filesystem provides some customization. The user can change the way files are looked for and how they are loaded. This allows plugging in own fileformats or getting file contents from other sources then harddisk files.
The two internal functions '''getprojectfilename'' and '''openfile''' can be wrapped by the user with functions of same declaration and operation.

## Methods:

existsfile (string filename)
  returns: (boolean)
  checks if the file exists.
getprojectfilename (name, resourcedirectory name, alternative directory name)
  returns: (filename,filetype)
  the internal function that looks for files in the resource directories or last used directory. It checks for the file in the projectpath first then basepath. See resource loading priority description.
openfile (name)
  returns: (pointer content, int size, boolean freedataonclose)
  the internal function that opens a file and copies its contents. It returns size of file and a pointer to the new allocated data. freedataonclose will always be true for regular files, as their content is copied on open.