![]() |
FDelete | Function (ROM Call 0x3D7) |
AMS 2.00 or higher | files.h |
unsigned short FDelete (const char *fileName); |
Deletes a file.
FDelete deletes the file fileName. fileName is a normal zero-terminated C string (i.e. it musn't be tokenized).
Note: FDelete may invalidate any current HSyms.
FDelete may return one of the following values as described in the FileStatusEnum enum:
FS_OK | File deleted. |
FS_BAD_NAME | Bad filename. |
FS_ERROR | File not deleted because it is locked, in use, a folder, in Flash, or it does not exist. |