While reading File Handling in C i came acroos the programs which copy files by inputing file name and required file Bu i wonder that there is no example how to Delete a file???
--so i want to know how to delete a file like we delete files in DOS--
While reading File Handling in C i came acroos the programs which copy files by inputing file name and required file Bu i wonder that there is no example how to Delete a file???
--so i want to know how to delete a file like we delete files in DOS--
Try
>remove ("file.txt");
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
we made a little move function in C. used unlink and link. could try looking them up. i cant remember exactly how to use them.