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.
string str = "c:\\mytempfile.txt";
if( DeleteFile(str) )
printf("%s deleted\n", str);
printf("%s was not deleted\n", str);