I have folder: C:\Users\Bob\Desktop\SomeFolder.
In the folder "SomeFolder" we have 10 files:
abc.txt, abc1.txt, abc2.txt, abc3.txt, abc4.txt,
xyz.txt, xyz1.txt, xyz2.txt, xyz3.txt, xyz4.txt.
Now let's say I want to display (list) all files which name start with "abc".
It should look something like this:
std::string path = "path_to_directory"; //C:\Users\Bob\Desktop\SomeFolder
for (auto & p : fs::directory_iterator(path))
std::cout << p << std::endl;
But I need some kind of "filter".