Feof - examples
- Politechnika Śląska
- Fundamentals of Computer Programming
Feof #include int main(void) { FILE *stream; /* open a file for reading */ stream = fopen("TEST.TXT", "r"); /* read a character from the file */ fgetc(stream); /* check for EOF */ if (feof(stream)) printf("We have reached ...