• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <iostream>
2 #include <boost/filesystem/path.hpp>
3 using namespace std;
4 namespace fs = boost::filesystem;
main(int argc,char ** argv)5 int main(int argc, char** argv)
6 {
7 
8 	try
9 	{
10 		fs::path my_path("test/test.txt");
11 		cout << "current path is      " << my_path << endl;
12 		cout << "parent path is       " << my_path.parent_path() << endl;
13 	}
14 	catch(std::exception& e) {
15 		cerr << endl << "Error during execution: " << e.what() << endl << endl;
16 		return EXIT_FAILURE;
17 	}
18 	return EXIT_SUCCESS;
19 }
20 
21