Basic and Advance C Question:
Download Questions PDF

How can I delete a file?

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 Interview Questions And Answers PDF

Previous QuestionNext Question
How do I copy files?How can I recover the file name given an open stream or file descriptor?