Hi, how can I delete a file (using fstream or something similar)? I know how to clear one, but I need to delete it. Please post info here, thanks.
Printable View
Hi, how can I delete a file (using fstream or something similar)? I know how to clear one, but I need to delete it. Please post info here, thanks.
On Windows platforms you can use the DeleteFile() API. It takes the file name as the parameter.
Best Regards,
Kabilan.
Pl rate if it helped. It inspires...
#include <stdio.h>
remove("file2delete.bye");