>>643
std::istreambuf_iterator<char> begin(fi),end;
std::string result(begin, end);