CS 361 - C reading contents of Directory
Example of how to use opendir, readdir, and closedir.
All code is in example.c. To compile, run make
in terminal.
How to use the program:
Terminal Input:
./example test_dir
Terminal Output:
Contents of test_dir are:
.
..
test1.c
test2.txt
sub_dir