#include<stdio.h>
int main(void)
{
        FILE *fp1=NULL;
        FILE *fp2=NULL;
        char buffer[100];
        char buffer1[100];
        char buffer2[100];
        int count=0;
        int count1=0;
        int count2=0;
        

        fp1=fopen(\"1a.txt\",\"r\");
        fp2=fopen(\"2a.txt\",\"r\");

        while(fgets(buffer,100,fp1))
        {
                count1++;
        }

        while(fgets(buffer,100,fp2))
        {
                count2++;
        }

        if(count1=count2)
        {
                while(fgets(buffer1,100,fp1))
                {
                        fgets(buffer2,100,fp2);

                        if(buffer1==buffer2){
                                count++;
                                continue;                                
                        }

                        else break;

                }

                if(count==count1)
                        printf(\"두 파일은 같습니다.\");
                else 
                        printf(\"두 파일은 다릅니다.\");

        }

        else
                printf(\"두 파일은 다릅니다.\");


        system(\"pause\");

}

두 파일이 같은지 다른지 알려주는 프로그램 제가 짜봤는데, 계속 다르다고만 나오네요

어디가 잘못된거죠?