#includeThis code example demonstrates the use of the path() function to create a boost::filesystem::path object from a string literal. The subsequent four cout statements describe the path name, parent path, filename, and extension of the path. Package Library: Boost.Filesystem#include int main() { boost::filesystem::path myPath("C:/Users/UserName/Desktop/"); std::cout << "Current Path: " << myPath << std::endl; std::cout << "Parent Path: " << myPath.parent_path() << std::endl; std::cout << "Filename: " << myPath.filename() << std::endl; std::cout << "Extension: " << myPath.extension() << std::endl; return 0; }