int main ()
{
FILE *in;
in = fopen("input.txt","r");
char c = fgetc(in);
while(feof(in) != EOF)
{
printf("%c",c);
c = fgetc(in);
}
}
feof(in) != EOF
doesn't stop the while loop from stopping but something like !feof(in)
seems to work. Any ideas?