Lua
C++
Edit

CreateFile

This function creates a new file on the user's hard drive. The new file will initially be empty. If a file exists at this location it will be overwritten.

Syntax

Parameter Description
path file path to use

Example

path = GetPath(PATH_DOCUMENTS) .. "/temp.txt"

-- Create a new file
if not CreateFile(path) then
    print("Failed to write file.")
    return 0
end

OpenDir(path)
Copyright © 2024 Ultra Software.
All rights reserved.