Easiest way to browse for contents of a folder and store them in a string vector

This is a discussion on Easiest way to browse for contents of a folder and store them in a string vector within the C++ Programming forums, part of the General Programming Boards category; What would be the easiest method of finding how many as well as all the filenames present in a selected ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    222

    Easiest way to browse for contents of a folder and store them in a string vector

    What would be the easiest method of finding how many as well as all the filenames present in a selected directory? After that, I'm pretty sure I can store the information into a vector of some sort.

    Thanks in advance.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,647
    It depends on your platform, though there are cross platform libraries available such as Boost.Filesystem (which would make for a pretty easy way to do what you want to do, I think).
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21