file_delete (STRING* name)

Deletes a file. The file will be searched first in the save_dir folder, then in the work folder .

Parameters:

name - name of the file, STRING* or char*.

Returns:

Nonzero if the command was successful, otherwise 0.

Speed:

Slow

Example:

// deletes file office3.sav of the SAVEDIR directory
 file_delete ("office3.sav"); 

See also:

file_cpy, file_rename, file_date

► latest version online