I need to delete a file from de hard disk.
Like c:\example.txt
Can anybody tell me how to do it?
Thanxs
Seek n destroy
Printable View
I need to delete a file from de hard disk.
Like c:\example.txt
Can anybody tell me how to do it?
Thanxs
Seek n destroy
you can make a system call and call rm, i think you use a pointer to the filename in this case
Code://stdio.h:
int remove(const char *filename);
//example
remove("old c project.c");