Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Program to display the contents of a file on screen ...lol*/
- #include <stdio.h>
- void main()
- {
- FILE *fopen(), *fp;
- int c;
- fp = fopen("prog.c","r");
- c = getc(fp) ;
- while (c!= EOF)
- {
- putchar(c);
- c = getc(fp);
- }
- fclose(fp);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement