R
Richard Bos
Eric Sosman said:No, you cannot. There is no necessary connection
between the number of characters you can read from a
file via a binary stream and the number you can read
from it via a text stream. The "binary count" can be
greater than, equal to, or less than the "text count."
There's that; and then there's the fact that you'll have to read the
entire file before you know how many bytes _or_ characters it contains
in any case, because:
# A binary stream need not meaningfully support fseek calls with a
# whence value of SEEK_END.
Richard