I've encountered a problem with reading from a text-file:
when I have a specific character in a text-file, sub/(substitute), the 26th character of the ascii sequence, it seems to think that the end of file has been reached. I'm reading the character with the fgetc function, and then I'm finding wether the end has been reached with feof. As far as I can figure, it's making feof return a non-zero integer afterwards. Why is this happening, is it likely to happen for other characters and how can it be avoided?