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
ls
Why not use glob()?
glob()
#include glob_t glob_result; glob("/your_directory/*",GLOB_TILDE,NULL,&glob_result); for(unsigned int i=0; i