Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Apple Xcode
- int c;
- FILE *fp1 = fopen(“original”, ”r”);
- FILE *fp2 = fopen(“clone”, ”w”);
- while(1)
- {
- c = fgetc(fp1);
- if(c==EOF) break;
- fputc(c, fp2);
- }
- fclose(fp1);
- fclose(fp2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement