jamescpp

Untitled

Nov 29th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. std::string loadFile(std::string path){
  2.     std::ifstream t(path);
  3.     return std::string((std::istreambuf_iterator<char>(t)),
  4.                     std::istreambuf_iterator<char>());
  5. }
Advertisement
Add Comment
Please, Sign In to add comment