Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <ctype.h>
- int main()
- {
- FILE *f_unos,*f_ispis;
- char c;
- f_unos = fopen("unos.txt","r");
- f_ispis = fopen("ispis.txt","w");
- if (f_unos==NULL || f_ispis==NULL) printf("Nisu otvoreni fajlovi");
- while(c=getc(f_unos)!=EOF) {
- putc(c,f_ispis);
- }
- fclose(f_unos);
- fclose(f_ispis);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement