reading directory

Discussion in 'C++' started by Florian Liefers, Mar 6, 2004.

  1. "Hello world\n",

    how can get a list of files/directories from a specified directory?
    something like

    FILE *fp=fopen("directory")
    while (...) {
    file=....;
    cout << file << endl;
    }


    Tnx,
    Florian
    Florian Liefers, Mar 6, 2004
    #1
    1. Advertising

  2. "Florian Liefers" <> wrote in message
    news:c2d05l$h09$07$-online.com...
    > "Hello world\n",
    >
    > how can get a list of files/directories from a specified directory?
    > something like
    >
    > FILE *fp=fopen("directory")
    > while (...) {
    > file=....;
    > cout << file << endl;
    > }
    >
    >
    > Tnx,
    > Florian


    Standard C++ has no support for directories. You need to ask this question
    again on a group that supports whatever platform you are using.

    Have a look at the comp.lang.c++ welcome page for suggestions
    http://www.slack.net/~shiva/welcome.txt

    john
    John Harrison, Mar 6, 2004
    #2
    1. Advertising

  3. Florian Liefers

    db Guest

    On Sat, 06 Mar 2004 18:01:41 +0100
    Florian Liefers <> wrote:

    > "Hello world\n",
    >
    > how can get a list of files/directories from a specified directory?
    > something like
    >
    > FILE *fp=fopen("directory")
    > while (...) {
    > file=....;
    > cout << file << endl;
    > }


    www.boost.org

    br
    db
    db, Mar 6, 2004
    #3
    1. Advertising

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. TJS
    Replies:
    1
    Views:
    498
    Eliyahu Goldin
    Jun 23, 2004
  2. Jack Wright
    Replies:
    1
    Views:
    456
    sonikchopra
    Apr 19, 2005
  3. =?Utf-8?B?QmFzIEhlbmRyaWtz?=

    Directory and files names in temporary asp.net directory

    =?Utf-8?B?QmFzIEhlbmRyaWtz?=, Jan 28, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    819
    Juan T. Llibre
    Jan 31, 2005
  4. Steve Singer
    Replies:
    0
    Views:
    525
    Steve Singer
    Feb 15, 2005
  5. davidw
    Replies:
    2
    Views:
    539
    Brock Allen
    May 30, 2005
Loading...

Share This Page