Interview Questions

How can I delete a file?

C Interview Questions and Answers


(Continued from previous question...)

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.

(Continued on next question...)

Other Interview Questions