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

Discussion in 'C++' started by Richard Coutts, Aug 30, 2003.

  1. > 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
     
    Richard Coutts, Aug 30, 2003
    #1
    1. Advertisements

  2. 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.
     
    Kevin Goodsell, Aug 30, 2003
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Don Adams
    Replies:
    1
    Views:
    788
    Martin Honnen
    Mar 5, 2004
  2. Richard Coutts

    Newbie: creating a folder/directory

    Richard Coutts, Aug 30, 2003, in forum: C++
    Replies:
    2
    Views:
    1,448
    Richard Coutts
    Aug 30, 2003
  3. Richard Coutts

    Newbie: creating a folder/directory

    Richard Coutts, Aug 30, 2003, in forum: C Programming
    Replies:
    2
    Views:
    448
    Simon Biber
    Aug 30, 2003
  4. Richard Coutts

    Newbie: iterating through folder contents

    Richard Coutts, Aug 30, 2003, in forum: C Programming
    Replies:
    1
    Views:
    418
    Richard Heathfield
    Aug 30, 2003
  5. T. Crane
    Replies:
    8
    Views:
    410
    Basilisk96
    Jun 10, 2007
  6. mike
    Replies:
    2
    Views:
    605
    Roedy Green
    Mar 15, 2008
  7. Wood Yee
    Replies:
    4
    Views:
    163
    Marc Heiler
    Dec 22, 2009
  8. Kamarulnizam Rahim
    Replies:
    4
    Views:
    449
    Robert Klemme
    Jan 28, 2011
Loading...