file
Core API
This module is not available in Core API
The file
module use for save/load local files
Usage:
Methods
save
save(filename, body) error
Save a file to the disk
script.lua
local err = file.save('example.txt', 'Hello World!')
if err ~= nil then
print('an error occurred: ' .. err)
return
end
load
load(filename) body, error
Load a file from the dist