Answer the question
In order to leave comments, you need to log in
Boost filename to char string
Yes: <boost\filesystem.hpp>
To search for files (current directory) I dug up the code:
for (boost::filesystem::recursive_directory_iterator it("./"), end; it != end; ++it) {
if (it->path().extension() == ".txt") {
std::cout << *it << std::endl;
}
}
cout
is it enough to feed *it
? In principle, I'm interested in what exactly he extractsrecursive_directory_iterator
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question