Skip to content

Instantly share code, notes, and snippets.

@OllieReynolds
Created August 13, 2016 01:18
Show Gist options
  • Save OllieReynolds/d0f30e524189404a8a0899495f696c78 to your computer and use it in GitHub Desktop.
Save OllieReynolds/d0f30e524189404a8a0899495f696c78 to your computer and use it in GitHub Desktop.
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