Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main (void)
- {
- FILE *dat;
- int c;
- dat = fopen ("prog.c", "r");
- if (dat == NULL)
- {
- printf ("Datoteka se ne moze otvoriti\n");
- exit (1);
- }
- while ((c = fgetc (dat)) != EOF)
- {
- putchar (c);
- }
- fclose (dat);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement