Does anybody know how to read contents of a directory into a c program?
eg: fopen( directory_name, "r"); ???
Does anybody know how to read contents of a directory into a c program?
eg: fopen( directory_name, "r"); ???
"Assumptions are the mother of all **** ups!"
Have a look at stat(2) and readdir(3).