Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <ctype.h>
- int main()
- {
- 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
- char zapis[101];
- while(fgets(zapis, 100, p) != NULL) {
- printf("%s", zapis);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement