How do I create a directory? How do I remove a directory (and its contents)?

Q

How do I create a directory? How do I remove a directory (and its contents)?

✍: Guest

A

If your operating system supports these services, they are likely to be provided in C via functions named mkdir and rmdir. Removing a directory's contents as well will require listing them and calling remove . If you don't have these C functions available, try system along with your operating system's delete command(s).

2015-04-01, 1237👍, 0💬