DelFile (delete a file)
ts
function DelFile(what: string): boolean;
This function tries to delete the what
file from a local file system, and returns true if the operation is successful, or false if it fails.
This function accepts the following parameters:
Parameter | Type | Requirement | Explanation |
---|---|---|---|
what | string | required | must be a valid and existing file in a local file system |
Possible return values:
Value | Explanation |
---|---|
true | the function succeeded: the file was deleted |
false | the function failed: the file was not deleted |