I am writing my program that compares strings input from 2 txts files if they are different they write to the third. the program does all the compareing and writing to the third file with no problems however the problem i am having is getting it to display that file.
I have wrote
fn3 is a file pointer
I am sure i am missing something but can think what, can anyone help!!!
while (fgets(filebuff,MAX_LEN,fn3) != NULL)
if (filebuff == '\n')
printf("The file was empty!!!");