ok my problem is this i have two files and i am comparing them like this.
for(a = 1;a <= 1; a = a + 1)
{
FILE*fp;
fp=fopen("finfile.txt","w");
if(word1[1]=word2[1])
{
fprintf(fp,"%s\n","fa");
}
if(word1[2]=word2[1])
{
fprintf(fp,"%s\n","fb");
}
//word1[3]=word2[1] (so on...)
fclose(fp);
i want word1 to compare to word2 now when i do this piece of code above it prints out to finfile which it shouldn't do because word1[1] is not the same as word2[1]. Can someone help me plz so that it will know that word1[1] isn't the same as word2[1]?
if you need any more peices of my code tell me and i shall post them for you.
thanks for whoever helps out