Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- void main(void){
- FILE *file;
- char a, buffer[500];
- file = fopen("file.txt","r");
- strcpy(buffer,"");
- fread(buffer, sizeof(char), 500, file);
- fclose(file);
- printf("%s\n", buffer);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement