CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2008
    Posts
    12

    Directory and File Listing

    Greetings!

    I am trying to traverse a directory, its subdirectories, and get the path to all of its files. I plan to store this so I may load the files later on.

    To avoid "Reinventing the wheel, I thought there would be a "standard" way to get a file / directory listing, but I have been unable to find one.

    I am working on Windows and just trying to create a simple console application. If anyone can give me advice or direct me to a good example, it would be appreciated. Thank you much!

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: Directory and File Listing

    It's in the FAQ. Poke around in there. You'll find it.

  3. #3
    Join Date
    Jul 2005
    Location
    Netherlands
    Posts
    2,042

    Re: Directory and File Listing

    Have a look at the Boost Filesystem library.
    Cheers, D Drmmr

    Please put [code][/code] tags around your code to preserve indentation and make it more readable.

    As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured