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

Recommended Answers

All 4 Replies


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++?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.