I want to get the file names of all files that have a specific extension in a given folder (and recursively, its subfolders). That is, the file name (and extension), not th
You don't say what OS you are on, but there are several options.
As commenters have mentioned, boost::filesystem will work if you can use boost.
Other options are