1#include <fstream>
2#include <string>
3
4int main(int argc, char** argv)
5{
6
7 std::ifstream ifs("myfile.txt");
8 std::string content( (std::istreambuf_iterator<char>(ifs) ),
9 (std::istreambuf_iterator<char>() ) );
10
11 return 0;
12}
13