CreateFile
This function creates a new file on the device's hard drive.
Syntax
- bool CreateFile(string path)
Parameters
- path: the path of the new file to create.
Returns
Returns true if the file was created, otherwise false is returned.
Remarks
This function will have no effect if Lua sandboxing is enabled.
Example
--Create a file
local path = "MyFile.txt"
FileSystem:CreateFile(path)