Is there a way to read file names from a folder using purely C (or C++)? That means without including windows.h (no FindFirstFile(), etc…).
It doesn’t look like fstream has this functionality. I know that file names are operating system dependent, but I was hoping there is some library that will allow it in Windows.
boost filesystem is a nice solution. Of course under the hood, it will still be using the windows API calls (when you build on windows), but this is abstracted away from you.