Delete file

Description

Delete a specific file in flash memory. must use function:Switch flash modes to set the system at "file operating mode" before use it.

If no file name matched, then do nothing.

Usage:

Direct:

"fDELfname "

Arduino:

void delFile(const char *fname)

C:

void Digole_delFile(const char *fname)

 

Note: This function can't run in commands set.

Parameters:

fname

The file name want to be deleted in flash memory.

Example (Arduino):

mydisp.setMemMode(1);   //set flash memory mode to File
mydisp.delFile("hello.txt");   //delete file "hello.txt" in flash memory

Changelog

Version Description
V7 function was added.

See Also

Switch flash modes