Need to get all file names in given directory.
I found some ways using third party lib - boost but I am don't want to use it.
I want the solution within standard C++.
Please help me to resolve this requirement.
All suggestions are welcome.
Thank you for the reply.
No for C++17.
I am using Visual Studio 2010 and Windows 7.
Visual Studio 2017/2019 have a free edition, Community.
Either will run on Win 7 w/ SP1, and are C++17 compliant.
If you are going to upgrade from VS 2010 I'd personally recommend 2019 over 2017.
FYI, 2017 or 2019 do take up a largish amount of HD space.
And C++ infrastructure is not installed as part of a default install. You have to manually select it.
Last edited on
I'd like to add that Boost isn’t exactly “third party” — it is largely written and maintained by people close to (or members of) C++’s steering committee.
I would go as far as to say that any serious C++ programmer should have Boost installed, and it is not unreasonable to require your library/program’s users to have it either.