For my final project in intermediate programming course I decided to write a dictionary program, allows user to create new words with definitions, and search through all previously existing words. I wan't to use actual folders and .txt files to store all the data. the only part I'm having trouble with is I cannot figure out how to make C++ print the names of the .txt files within a certain folder, I asked my instructor and he said something about API, I did some research but couldn't find anything that seemed to be what i was looking for.
P.S. another piece of code I think I written right (but not for sure is
CODE
outData.open("dictionary\\"addWordLetter"\\"newWord".txt");
is that the correct way allow the user to change directories/file names? where addWordLetter and newWord are variables?
thx everyone for their help!! <3
This post has been edited by ShadoWraitH: 6 Dec, 2007 - 10:36 AM