File/Directory I/O

File/Directory I/O

Post by Duke Atreid » Thu, 18 Nov 1993 01:40:09



I'm looking for some functions - either already as a part of GCC and my
C library for Unix, or as an external file I can load -- that can
        a) give me a directory listing file by file
        b) let me deal with those files as strings -- like Microsofts PC
compiler. IE:

findfirst("/users/eric/*") would result in ERIC.TMP or some other
reasonable filename.
findnext would return the next file, like John.tmp or something along
those lines. Any suggestions?
        --Eric