Both Windows and Linux have file systems that always know the exact length in bytes of the contents of a file, and have absolutely no need of any special character marking the file’s end.
Long back system used to read in BLOCK fashion and then they needed special character Control-Z character decimal code 26, hex 1A
In C and C++ in file stdio.h we do have
#define EOF (-1)
It is used as the return value of functions like int getchar(void)
.http://latedev.wordpress.com/2012/12/04/all-about-eof/
No comments:
Post a Comment