Advertisement
Josif_tepe

Untitled

Dec 24th, 2020
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <ctype.h>
  5.  
  6. int main()
  7. {
  8.     FILE *p = fopen("in.txt", "r"); // "r" znaci read odnosno ako sakame da prevzeme od fajlot, "w" znaci write odnosno ako sakame da ispecatime vo fajlot
  9.     char zapis[101];
  10.     while(fgets(zapis, 100, p) != NULL) {
  11.         printf("%s", zapis);
  12.     }
  13.     return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement