Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main (void) {
- FILE *du, *di;
- int c;
- du = fopen ("stara.txt", "r");
- di = fopen ("nova", "w");
- while ( (c = fgetc(du) ) != EOF) {
- fputc(c, di);
- }
- fclose(du);
- fclose(di);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement