help me...i am copying a mp3 file....but when i run the code the copied file is having larger size than the original mp3 file.....here is the code
Code:#include<stdio.h> #include<stdlib.h> int main() { FILE *fs,*ft; unsigned char ch; fs=fopen("17.mp3","rb"); if(fs==NULL) { puts("cannot open source file"); exit(1); } ft=fopen("16.mp3","wb"); if(ft==NULL) { puts("cannot open target file"); fclose(fs); exit(2); } while(1) { ch=fgetc(fs); if(ch==EOF) break; else fputc(ch,ft); } fclose(fs); fclose(ft); return(0); }



5Likes
LinkBack URL
About LinkBacks



