my program is running, but logically wrong..
Assume that there are two text files. write a program that will determine whether these two text files are identical or not..
it doesn't important if the program print the content of each program.. the important is it compare the content of the first text file to another text file... and print only whether they're equal or not
help me please and give me some advice....
heres my program..
so many Thanks for all of your help...
printf("Input name of the text file:\n");
printf("Input another text filename:\n");
printf("they're not equal\n");
if((inputf1 = fopen(filename1, "r")) == NULL)
if((inputf2 = fopen(filename2, "r")) == NULL)
printf("ERROR: %s cannot be opened:\n",filename1);
printf("ERROR: %s cannot be opened too:\n",filename2);
while((x = fgetc(inputf1)) !=EOF)
while((y = fgetc(inputf2)) !=EOF)