Does anybody know how to read contents of a directory into a c program?
eg: fopen( directory_name, "r"); ???
This is a discussion on Directory Nodes within the Linux Programming forums, part of the Platform Specific Boards category; 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).