Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <math.h>
- using namespace std;
- int main() {
- FILE* f;
- f = fopen("C:\\test.txt", "r");
- if (!f) {
- cout << "No such file directory";
- return 1;
- }
- char c;
- while ((c = getc(f)) != EOF) {
- cout << c;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement