Created
August 13, 2016 01:18
-
-
Save OllieReynolds/d0f30e524189404a8a0899495f696c78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::string load_source(const char* filename) { | |
std::ifstream input{filename}; | |
return std::string{std::istreambuf_iterator<char>(input), std::istreambuf_iterator<char>()}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment