delete a file
f = deletefile(filename)
a file name existing or not.
%t or %f
delete a file. if file has been deleted, it will return %t else %f.
fd = mopen(TMPDIR+'/filetodelete.txt','wt'); mclose(fd); if (fileinfo(TMPDIR+'/filetodelete.txt') <> []) then deletefile(TMPDIR+'/filetodelete.txt'),end; deletefile(TMPDIR+'/notexistingfile')