sys.tempfile([prefix])
Create a temporary empty File Object, created in the user temporary folder.
Parameters
prefix
An optional string that contains the first 3 letters of the temporary filename.
Return value
Returns a File Object that represents a temporary file located in the Windows system temporary path. In case of error, this function returnsnil
Example
local temp = sys.tempfile()
print("Temporary file path: "..temp.fullpath)
-- copy the temporary file to the current directory
temp:copy(".\\config.ini")