Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define N 80
- using namespace std;
- int main () {
- FILE *filec;
- FILE *filer;
- int size;
- filec = fopen("f.txt", "r");
- fseek (filec, 0, SEEK_END);
- size = ftell (filec);
- fclose(filec);
- char arr[size];
- filer = fopen("f.txt", "r");
- while (fgets (arr, size, filer) != NULL)
- fclose(filer);
- printf("%s", arr);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement