Files Batch Conversion

I have a programm which converts binary files into ascii files. At the moment I am asking for the filename and this file will be converted.

Now I have some thousand of these files and want to convert them all. So, I am looking for something like:

List all *.sdf files

from(1 to last) convert them all

How can I do this? I have never worked with filesystem operations. I have boost installed and like to use it.
http://stackoverflow.com/questions/8725331/iterate-over-all-files-in-a-directory-using-boost-foreach

however when i did this kind of stuff with boost (about 4 years ago) i'm fairly sure i didn't use BOOST_FOREACH. i'll try and find my code tonight.
Topic archived. No new replies allowed.