How can I delete local files without opening a command prompt?
How can I delete local files without opening a command prompt?
Straight from MSDN:
The DeleteFile function deletes an existing file.
BOOL DeleteFile(
LPCTSTR lpFileName // file name
);
Or you could try using remove() from <cstdio>. http://www.cplusplus.com/ref/cstdio/remove.html