This is my code but it doesn't work...now i am trying to read the character by character but i don't know how i should write the "if"
printf("\n\n Give 1st file name: ");
printf("\n\n give 2nd file name: ");
printf("\nFile %s can't open!!!",filename1);
printf("\nFile %s can't open!!!",filename2);
fscanf(fp1, "%s", s1);
fprintf(fp2, "%s" ,s1);