C++ Reading filenames
I'm tryin to write a program for my neighbor to read the decapitalize all the names of the files he recieves from his clients (he does web design, and the images for some reason don't work when capitalized). I have everything figured out, as I wrote a similar program yesterday to decapitalize text files. But the problem I'm having is I don't know of anyway that I can read a single filename into a string so that it could then be decapped. I've been researching and I think the dirrent.h header file might have something, but I can't find what I'm looking for. Anyone got any ideas?
Basically I wan't the program to read the name of each file into a string. Then when it's done with the decapitalizing and renaming, move to the next file until all the files have been decapped.
Thanks for any help, Howie