vendredi 2 avril 2021

How to load all file names from a folder with a specific extension?

I am writing applications in C ++ 11. I have a folder with ".config" files in the /etc/support folder. E.g:

device1.config
device2.config
device3.config

Is it possible to do a C ++ loop that iterates over the names of these files. Possibly be able to load all device names into some vector with strings?

Aucun commentaire:

Enregistrer un commentaire