Does anyone know how i could get a list of all files in a given directory given the directory's path using c++?


This could be OS dependant. In C++, programming on a Mac, you would make an API call to the OS to build the dialogue box, and then the files would be populated within. I am sure Windoze has similar functionality.

What OS are you building / programming for?

Let us know.


I am planning to use Linux...(g++ compiler..)...i know about the c part of it but is there something for c++?