Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Re: Newbie: interating the contents of a folder/directory

Reply
Thread Tools

Re: Newbie: interating the contents of a folder/directory

 
 
Richard Coutts
Guest
Posts: n/a
 
      08-30-2003
> Windows/VC++ 6.0
>
> I need to read all of the files in a folder/directory by using simple
> stream fuctions. I can do this if I know apriori what the names of
> the files are, but how do you derive a list of all of the files in a
> folder?
>
> Thanks!
> Rich


Nevermind -- I found the FindFirstFile/FindNextFile and related functions.

~Rich
 
Reply With Quote
 
 
 
 
Kevin Goodsell
Guest
Posts: n/a
 
      08-30-2003
Richard Coutts wrote:

>>Windows/VC++ 6.0
>>
>>I need to read all of the files in a folder/directory by using simple
>>stream fuctions. I can do this if I know apriori what the names of
>>the files are, but how do you derive a list of all of the files in a
>>folder?
>>
>>Thanks!
>>Rich

>
>
> Nevermind -- I found the FindFirstFile/FindNextFile and related functions.
>


That's fine, as long as you are aware that these are not standard
functions, and therefore are not available on other platforms. They are
also not topical here, since this group is for discussion of the
standard C++ language.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding contents on yaml file without overwriting actual contents Kamarulnizam Rahim Ruby 4 01-28-2011 09:10 AM
if innerHTML used twice then it replaces the contents i want it to display all the contents virendra.amritkar@gmail.com Javascript 0 06-29-2007 08:13 AM
interating over single element array T. Crane Python 8 06-09-2007 11:03 PM
Saving entire contents of selected directory? Dave Garrett Firefox 1 08-22-2005 05:26 PM
Can I restrict both attribute contents and element contents in schema Don Adams XML 1 03-05-2004 12:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57