createNewFile

Synopsis

$ createNewFile("file")

Creates an empty file at the specified file location.

Parameters

"file" - the name of the file to create.

Returns

The filename if the operation was successful or $null.

Side Effects / Notes

Errors

Examples

createNewFile("/private/etc/some_file"); if (checkError($error)) { println("Unable to create file: $error"); }

Unable to create file: java.io.IOException: Permission denied

See Also