I strongly advise to use Boost.FileSystem.
http://www.boost.org/doc/libs/1_38_0/libs/filesystem/doc/index.htm
In your case that would be
More Related Contents:
- Long condition C++ [closed]
- how to write makefile when two header files include eachother in c++? [duplicate]
- What is std::move(), and when should it be used?
- What is the correct answer for cout
- C++ Dynamic Shared Library on Linux
- Deoptimizing a program for the pipeline in Intel Sandybridge-family CPUs
- What exactly is a reentrant function?
- Magic number in boost::hash_combine
- Efficient string concatenation in C++
- How do I programmatically get the version of a DLL or EXE file?
- C++11 “auto” semantics
- Relative performance of std::vector vs. std::list vs. std::slist?
- Porting clock_gettime to windows
- Does the GotW #101 “solution” actually solve anything?
- Destructors of builtin types (int, char etc..)
- C++ class header files organization
- When have you used C++ ‘mutable’ keyword? [closed]
- C++: How to require that one template type is derived from the other
- Resetting the State of a Stream
- Can a single member of a class template be partially specialized?
- How to programmatically gain root privileges?
- C++ std::map holding ANY type of value
- How to copy a .txt file to a char array in c++
- Segfaults in malloc() and malloc_consolidate()
- long long implementation in 32 bit machine
- C++ Linker Error With Class static constexpr
- Does C++11 change the behavior of explicitly calling std::swap to ensure ADL-located swap’s are found, like boost::swap?
- How to set, clear, and toggle a single bit?
- How are the __cplusplus directive defined in various compilers?
- Why is pow(int, int) so slow?