Name

deletefile — delete a file

Calling Sequence

f = deletefile(filename)

Parameters

filename

a file name existing or not.

f

%t or %f

Description

delete a file. if file has been deleted, it will return %t else %f.

Examples

fd = mopen(TMPDIR+'/filetodelete.txt','wt');
mclose(fd); 
if (fileinfo(TMPDIR+'/filetodelete.txt') <> []) then deletefile(TMPDIR+'/filetodelete.txt'),end;
deletefile(TMPDIR+'/notexistingfile')
 

Authors

A.C