Delete an existing file.
BOOL DeleteFile( LPCTSTR lpFileName )
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
EX1
int DeleteFile_ex1() { string str = "c:\\mytempfile.txt"; if( DeleteFile(str) ) printf("%s deleted\n", str); else printf("%s was not deleted\n", str); return 1; }
origin.h