View Single Post
  #1  
Old 01-26-2005, 15:13
Dmit
 
Posts: n/a
Quote:
Originally Posted by WhoCares
for binary files, use feof() function, don't use EOF macro.
What the reason for such recommendation? According to MSDN
Quote:
To indicate a read error or end-of-file condition, getc and getchar return EOF
I've used EOF for more that 10 years in multiple progs, and never encountered any problem.
Reply With Quote