[Solved] fgetc reads character with value = -1
feof is meant to signal that you’ve tried to read past the end of file – which means that you first have to reach it. So it will only work after you try to read and the system realizes you’re at the end. And what does fgetc return if you try to read past the … Read more