Basic and Advance C Question:

How can I delete a file?

Tweet Share WhatsApp

Answer:

The Standard C Library function is remove. (This is therefore one of the few questions in this section for which the answer is not ``It's system-dependent.'') On older, pre-ANSI Unix systems, remove may not exist, in which case you can try unlink.

Download C Programming PDF Read All 221 C Programming Questions
Previous QuestionNext Question
How do I copy files?How can I recover the file name given an open stream or file descriptor?