hey guys what is wrong with this while loop
yes I wrote this, this isn't homework where I have to find the problem or somethingCode:int buff1; FILE *pfile; pfile = fopen("textfile.txt","r+"); while( (buff1 = fgetc(pfile)) != EOF && buff1 != '\n') { printf("%s",buff1); }