Advertisement
Guest User

2

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