cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
reading file stops at 0x1A
reading file stops at 0x1A
Apr 1, 2009 at 5:43pm UTC
sigutis
(15)
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
Apr 1, 2009 at 5:44pm UTC
Apr 1, 2009 at 5:59pm UTC
Duthomhas
(13206)
^Z is the text EOF marker on Windows systems. Open your file in binary mode to avoid the problem.
Hope this helps.
Apr 1, 2009 at 6:05pm UTC
sigutis
(15)
It helps. thx.
Topic archived. No new replies allowed.