Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- void displayProg(FILE * file)
- {
- char CH[254];
- file = fopen("main.c","r");
- while(feof(file) == 0)
- {
- fgets(CH,254,file);
- printf("%s\n",CH);
- }
- }
- void main()
- {
- FILE * file;
- displayProg(file);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement