Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 398 Bytes

File metadata and controls

20 lines (14 loc) · 398 Bytes

directory_reading_example

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