Why?
Because fread doesn't read C strings, it reads just bytes. Same as you want to
ignore end-of-line characters, the fread function doesn't interpret \0 characters,
i.e. it just reads them. Use the return value of the fread function itself.
kind regards,
Jos