I am writing a program using C++. The program converts a text file into a xml file. it reads in one input file and outputs it to another file. The thing is I have 10 folder and each of these 10 folders consists of 58 text files, I cant be doing it one by one as its gonna take very long. I have renamed the 58 files according to their number like this, filename-01.txt..........filename-58.txt, ok, so I want the program to input all these 58 files and then output them into something like filename-01.xml............filename-58.xml. Ok, how do I go about doing it. I am not really good at file manipulation stuff or the array thingy, but I am willing to learn if someone could tell me if is it possible for me to go about doing it.