P
Pete Wilson
C++ instructor says, emphatically: end of file is always a NUL char in
the file; count on it. When program sees a NUL, that's it, that's the
end of file. And testing for NUL is always the right thing to do.
Impossible to buy this because so diff from C; and because binary
files can't exist if it's true.
What is the right way to check portably for end of file?
Thanks!
the file; count on it. When program sees a NUL, that's it, that's the
end of file. And testing for NUL is always the right thing to do.
Impossible to buy this because so diff from C; and because binary
files can't exist if it's true.
What is the right way to check portably for end of file?
Thanks!