Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,159 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,908 people online right now. Registration is fast and FREE... Join Now!




Help, printing file names

 
Reply to this topicStart new topic

Help, printing file names

ShadoWraitH
6 Dec, 2007 - 09:36 AM
Post #1

New D.I.C Head
*

Joined: 5 Sep, 2007
Posts: 3


My Contributions
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
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 11:47PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month