Skip to content

format

typescript
File.Create(path)

class: File

description

Create a file at the specified path.

parameter

param_nametypedescription
pathstringThe path of the file to be created.

return

typedescription
void

code example

javascript
function Test(file_path: string) {  
	try {
		File.Create(file_path);
		if (!File.Exists(file_path)) {
			Debug.Error("File '", file_path, "' has been created, but does not exist.");
		}
	} catch (error) {
		Debug.Error(error);
	}
}