-
-
Save baharev/731f3c6c8d15320d2336 to your computer and use it in GitHub Desktop.
Show contents of the file data.txt in the console
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
#include <iostream> | |
#include <fstream> | |
int main() { | |
std::fstream in("data.txt"); | |
std::cout << in.rdbuf() << std::endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment