FileMgr::DeleteFile
Defined in:
Deletes a file.
C4Files.h
Prototype
static FileResult DeleteFile(const char *name);
Parameters
name |
A pointer to the name of the file to delete. If a path name is specified, it is interpreted relative to the application. Directory names preceding a file name or another directory name should be followed by a single forward slash character (/). |
Description
The DeleteFile
function attempts to delete the file whose name is given by the name
parameter and returns one of the following file result codes.
kFileOkay |
The file was successfully deleted. |
kFileDeleteFailed |
The file could not be deleted because the operating system returned an error. |