reading file stops at 0x1A

I am reading file to char, checking readed chars and writing to another file with fputc() and fgetc(), but function doesnt read all file. I opened file in hex editor and discovered that reading stops at 0x1A char. why is that? how to avoid this?
Last edited on
^Z is the text EOF marker on Windows systems. Open your file in binary mode to avoid the problem.

Hope this helps.
It helps. thx.
Topic archived. No new replies allowed.