get the file names?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Deephay

    get the file names?

    Greetings all,

    How can I get the filenames in the current directory?
    I am working under linux, g++ compiler. TIA.

    Deephay


  • Neelesh Bodas

    #2
    Re: get the file names?


    Deephay wrote:[color=blue]
    > Greetings all,
    >
    > How can I get the filenames in the current directory?
    > I am working under linux, g++ compiler. TIA.
    >[/color]

    [Off Topic]
    Std C++ doesnot give a way to do this since concept of directories and
    files is platform-specific aspect. Try comp.os.linux

    [As An Aside]
    Lookup readdir, opendir, seekdir (man pages)

    Comment

    • Deephay

      #3
      Re: get the file names?

      thx!

      "Neelesh Bodas" <neelesh.bodas@ gmail.com> worte
      :1141193662.774 040.186390@u72g 2000cwu.googleg roups.com...[color=blue]
      >
      > Deephay wrote:[color=green]
      >> Greetings all,
      >>
      >> How can I get the filenames in the current directory?
      >> I am working under linux, g++ compiler. TIA.
      >>[/color]
      >
      > [Off Topic]
      > Std C++ doesnot give a way to do this since concept of directories and
      > files is platform-specific aspect. Try comp.os.linux
      >
      > [As An Aside]
      > Lookup readdir, opendir, seekdir (man pages)
      >[/color]


      Comment

      • Deephay

        #4
        Re: get the file names?

        thx!

        "Neelesh Bodas" <neelesh.bodas@ gmail.com>
        wrote:114119366 2.774040.186390 @u72g2000cwu.go oglegroups.com. ..[color=blue]
        >
        > Deephay wrote:[color=green]
        >> Greetings all,
        >>
        >> How can I get the filenames in the current directory?
        >> I am working under linux, g++ compiler. TIA.
        >>[/color]
        >
        > [Off Topic]
        > Std C++ doesnot give a way to do this since concept of directories and
        > files is platform-specific aspect. Try comp.os.linux
        >
        > [As An Aside]
        > Lookup readdir, opendir, seekdir (man pages)
        >[/color]


        Comment

        • braveconf

          #5
          Re: get the file names?

          USE __FILE__ macro

          Comment

          Working...