How to read a filename and made a list

Hi everyone. I'm a newbie in C++ program.
My problem is:
I need to search filenames with a part of them, and made a list of them.
For example, I have these 5 files:
20081117_ABC1E_1_Prod
20081118_DEF5G_3_Prod
20081117_ABC1E_12_Prod
20081117_ABC1E_21_Prod
20081117_BCDE2F_1_Prod
I want to search filenames with "ABC1E" (hier there are 3) and display a list with them.
How to use these 2 functions?
First of all, is it possible to search and analyse a filename on the HDD? (in C:\Exemple\ in example)

I've search on Google all the afternoon.
Please someone can help me?
If you have the file names in std::strings, you can use the member function .find() to find stuff inside of it. For searching stuff on the hard drive...you will probably have to use some OS specific functions...I think there was thread somewhere about it, try using the search bar for this site.
Topic archived. No new replies allowed.