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