What API to use to parse file names in a given directory

Hi,

Long time back I had used this windows API. What this API did was input = pointer to a directory

Then you called it in a while loop and it returned the file names(full path) in that directory one by one. You had the option of doing this recursivley also. You could give wild cards like *, etc..

In other words it just imitates dir /s command and I want to do it programmatically. If some kind soul could please point me to the API I would be grateful.

regards

ananda



Answer this question

What API to use to parse file names in a given directory