C Interview Questions and Answers

 

How can I delete a file?

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.

Posted by:Richards