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
This is a discussion on How to delete a file? within the C Programming forums, part of the General Programming Boards category; I need to delete a file from de hard disk. Like c:\example.txt Can anybody tell me how to do it? ...
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
Monday - what a way to spend a seventh of your life
Code://stdio.h: int remove(const char *filename); //example remove("old c project.c");