SyntaxFix
Write A Post
Hire A Developer
Questions
Using Boost.Filesystem:
boost::filesystem::path p("C:\\folder\\foo.txt"); boost::filesystem::path dir = p.parent_path();