format
typescript
File.Create(path)class: File
description
Create a file at the specified path.
parameter
| param_name | type | description |
|---|---|---|
| path | string | The path of the file to be created. |
return
| type | description |
|---|---|
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);
}
}