I have next code:
#include "boost/filesystem.hpp"
#include "boost/filesystem/fstream.hpp"
#include <iostream>
namespace fs = boost::filesystem;
...
fs::path p{ "mysuperfile.txt" };
fs::ifstream ifs{ p };
std::string data;
ifs >> data;
ifs.close();
...
And the problem is, that it reads content of file until first white space, which is only one first word. Nothing more. So the question is how is possible to read content of the file with white spaces, line breaks, tabs and all other possible characters with boost::filesystem:ifstream? thanks.