Gaijinco wrote:
I'm looking for libraries to handle basic operations on files and
subdirectories as listing the files and the subdirectories of a
directory.
Someone suggest me <dirent.h(which is supported by g++) but I
couldn't find clear information about its usage.
Does anyone knows a more documented alternative? Or a good reference to
<dirent.h>?
Thanks.
Do you really need a library, or do you just need to read a directory?
A quick hack would be to use the system function.
system("cmd /C \"dir /b myprog.dir\"");
ifstream dir("myprog.dir");
Other than that: read the plattform specific documentation that came
with your OS and/or compiler. There is some kind of interface to handle
directories on each plattform, you just need to find it.