Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <iterator>
  4. #include <string>
  5.  
  6. std::string B(const std::string& fname)
  7. {
  8.     std::ifstream inf(fname);
  9.     return std::string(std::istream_iterator<char>(inf),
  10.                        std::istream_iterator<char>());
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement