I need to add smilies to a board, and I have over 600. I need to know how can I tell C++ to get a filename for a directory, and add that and some stuff to a txt file. It goes like this :
So I need to be able to grab a name eg. smiley1.gif, add =+:A smiling smiley=+::smile:, and then go to next line.
How can I make a program grab a filename ?