Mail Archives: djgpp/1999/01/15/21:02:22
Camilo wrote:
>
> Hi,
>
> I need to know how do you travers the DirTree structure in ANSI C++?
>
> In Win you use:
>
> struct _finddata_t DirFls;
> _findfirst(char *curpth, &DirFls);
> _findnext( hFile, &DirFls);
> _findclose(hFile);
>
> as I did in the attached (dirty, yet working) code example.
>
> I did my homework, and was wondering if ANSI C++ does not provide such
> thing (either).
It doesn't. But:
* POSIX, generally implemented on DJGPP and Unix systems, has
`opendir'/`readdir'/etc.
* DOS compilers, including DJGPP, have `findfirst'/`findnext'.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -