I've seen a very convenient object used in VB called Filesystem or something like that. You could do things like
to get a count of the directories and files. Very easy.
Now, I'd like to know if theres something similar in C++, so that I could count the files inside a directory without all the trouble of doing a search and adding one by one. Or if theres a way to do it faster, at a lower level, if theres a set of API functions, or whatever.