How can I get the list of files in a directory using C or C++?

How can I determine the list of files in a directory from inside my C or C++ code?

I’m not allowed to execute the ls command and parse the results from within my program.

3Best Answer
31

Leave a Comment