I been looking for a tutorial on this for a few days now with no luck. In C++ how would I be able to get a get a list of (all) directories on a certian drive?
For example, say I wanted to build a list of all directories underneath my F:\ drive in wondows or in linux all directories below /mnt/hdb1...
I just want to throw them into a vector and pump them out to flat file one path per line...
How to get a list of directories? Topic is solved
How to get a list of directories?
____
wxWidgest 2.8.2 / 2.8.6u
mingw32-gcc-3.4.2 / gcc 4.1.2
wxDev-CPP beta 6.10.2 / Anjuta
Dev-CPP (4.9.9.2)
XP Pro / Vista / Feodra 8
wxWidgest 2.8.2 / 2.8.6u
mingw32-gcc-3.4.2 / gcc 4.1.2
wxDev-CPP beta 6.10.2 / Anjuta
Dev-CPP (4.9.9.2)
XP Pro / Vista / Feodra 8
Yes I have, but I was looking for something using the regular CPP streams. Mainly since I haven't used them in this manner before.mispunt wrote:Did you see the class wxDir?
____
wxWidgest 2.8.2 / 2.8.6u
mingw32-gcc-3.4.2 / gcc 4.1.2
wxDev-CPP beta 6.10.2 / Anjuta
Dev-CPP (4.9.9.2)
XP Pro / Vista / Feodra 8
wxWidgest 2.8.2 / 2.8.6u
mingw32-gcc-3.4.2 / gcc 4.1.2
wxDev-CPP beta 6.10.2 / Anjuta
Dev-CPP (4.9.9.2)
XP Pro / Vista / Feodra 8