• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //  filesystem tut0.cpp  ---------------------------------------------------------------//
2 
3 //  Copyright Beman Dawes 2009
4 
5 //  Distributed under the Boost Software License, Version 1.0.
6 //  See http://www.boost.org/LICENSE_1_0.txt
7 
8 //  Library home page: http://www.boost.org/libs/filesystem
9 
10 #include <iostream>
11 #include <boost/filesystem.hpp>
12 namespace fs = boost::filesystem;
13 
main(int argc,char * argv[])14 int main(int argc, char* argv[])
15 {
16   if (argc < 2)
17   {
18     std::cout << "Usage: tut0 path\n";
19     return 1;
20   }
21   std::cout << argv[1] << '\n';
22   return 0;
23 }
24