Ticket #13047: test.cpp

File test.cpp, 373 bytes (added by anonymous, 5 years ago)

Minimal code

Line 
1#include <iostream>
2
3#include <boost/filesystem/path.hpp>
4#include <boost/filesystem/fstream.hpp>
5#include <boost/filesystem/string_file.hpp>
6
7int main() {
8
9 if (boot::filesystem::exists("test/") ) {
10 std::cout << "This directory already exist!" << std::endl;
11 }
12 else {
13 std::cout << "Directory not found..." << std::endl;
14 }
15 return 0;
16}