I have a code that creates directories
but the problem is that I do not find the program to read it, any idea of how it would be?
You can use the dirent.h (POSIX) library, its implementation would be something like this:
#include <sys/types.h>
#include <dirent.h>
DIR* dirp = opendir("."); // Aquí sería el directorio a mostrar
struct dirent * dp;
while ((dp = readdir(dirp)) != NULL) {
printf("%s", dp->d_name);
}
closedir(dirp);
You can see other methods or techniques in link