Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main ()
  4. {
  5. int c;
  6. FILE *tokPod;
  7. tokPod= fopen("tekst.txt", "r");
  8. if (tokPod==NULL){
  9. printf("Ne mogu otvoriti tekst.txt\n");
  10. exit (-99);
  11. }
  12. while ((c=fgetc(tokPod))!=EOF)
  13. putchar (c);
  14. fclose (tokPod);
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement