Save all file names in a directory to a vector
Posted
by Bobby
on Stack Overflow
See other posts from Stack Overflow
or by Bobby
Published on 2010-03-08T19:37:39Z
Indexed on
2010/03/08
19:51 UTC
Read the original article
Hit count: 172
c++
I need to save all ".xml" file names in a directory to a vector. To make a long story short, I cannot use the dirent API. It seems as if C++ does not have any concept of "directories".
Once I have the filenames in a vector, I can iterate through and "fopen" these files.
Is there an easy way to get these filenames at runtime?
© Stack Overflow or respective owner