Last active
October 12, 2015 05:06
-
-
Save kkAyataka/47be8c02c05b3644c69f to your computer and use it in GitHub Desktop.
Read file.
This file contains hidden or 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
#include <fstream> | |
int main () { | |
std::ifstream fs("/file"); | |
const std::string data((std::istreambuf_iterator<char>(fs)), std::istreambuf_iterator<char>()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment