No you shouldn't, you should only avoid using feof() (feof checks a flag) to control loops, EOF is perfectly fine.
EOF doesn't fit into a char, also fgetc() returns a signed integer.Originally Posted by Abda92
Code:int c; while((c = fgetc(file)) != EOF) { /* blah... */