Creates an empty file at the specified file location.
"file" - the name of the file to create.
The filename if the operation was successful or $null.
createNewFile("/private/etc/some_file"); if (checkError($error)) { println("Unable to create file: $error"); }
Unable to create file: java.io.IOException: Permission denied