files.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2010,
3  * François Bleibel,
4  * Olivier Stasse,
5  *
6  * CNRS/AIST
7  *
8  */
9 
10 #include <boost/filesystem/operations.hpp>
11 #include <boost/filesystem/path.hpp>
12 #include <iostream>
13 #include <sot/core/debug.hh>
14 
15 using namespace std;
16 
17 int main() {
18  boost::filesystem::create_directory("foobar");
19  ofstream file("foobar/cheeze");
20  file << "tastes good!\n";
21  file.close();
22  if (!boost::filesystem::exists("foobar/cheeze"))
23  std::cout << "Something is rotten in foobar\n";
24 
25  return 0;
26 }
main
int main()
Definition: files.cpp:17
debug.hh


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31