How do you get a list of files within a directory so each can be processed?
Here's an example in C on Linux. That's if, you're on Linux and don't mind doing this small bit in ANSI C.
#include
DIR *dpdf;
struct dirent *epdf;
dpdf = opendir("./");
if (dpdf != NULL){
while (epdf = readdir(dpdf)){
printf("Filename: %s",epdf->d_name);
// std::cout << epdf->d_name << std::endl;
}
}
closedir(dpdf);