From: Hyman Rosen <hymie@prolifics.com>
Subject: Re: Announce: OpenToken 2.0 released
Date: 2000/02/07
Date: 2000-02-08T00:01:57+00:00 [thread overview]
Message-ID: <t7r9eosgsi.fsf@calumny.jyacc.com> (raw)
In-Reply-To: 87ya8wok07.fsf@deneb.cygnus.argh.org
Florian Weimer <someone@deneb.cygnus.argh.org> writes:
> You are right for text files. For binary files, there has to be
> a bijection between the internal and external representation of
> characters. This means that the value EOF can occur in a binary stream
> if sizeof(char) equals sizeof(int).
Agreed. When you are coding for such a case in C or C++, you must then use
one of the several input methods which separate content and status. In C,
you can use fread, or test with feof. C++ additionally allows the use of
istream.get(char &), which returns a status value.
next prev parent reply other threads:[~2000-02-07 0:00 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-27 0:00 Announce: OpenToken 2.0 released Ted Dennison
2000-01-28 0:00 ` Jürgen Pfeifer
2000-01-28 0:00 ` Ted Dennison
2000-01-31 0:00 ` Hyman Rosen
2000-02-01 0:00 ` Ted Dennison
2000-02-01 0:00 ` Hyman Rosen
2000-02-01 0:00 ` David Starner
2000-02-01 0:00 ` Brian Rogoff
2000-02-01 0:00 ` Hyman Rosen
2000-02-01 0:00 ` Brian Rogoff
2000-02-02 0:00 ` Hyman Rosen
2000-02-02 0:00 ` Jeff Carter
2000-02-02 0:00 ` Vladimir Olensky
2000-02-01 0:00 ` Hyman Rosen
2000-02-02 0:00 ` Ted Dennison
2000-02-04 0:00 ` Ted Dennison
2000-02-05 0:00 ` Ehud Lamm
2000-02-04 0:00 ` Florian Weimer
2000-02-07 0:00 ` Hyman Rosen
2000-02-07 0:00 ` Florian Weimer
2000-02-07 0:00 ` Hyman Rosen [this message]
2000-02-09 0:00 ` Robert A Duff
2000-02-09 0:00 ` Hyman Rosen
2000-02-09 0:00 ` Larry Kilgallen
2000-02-17 0:00 ` Robert A Duff
2000-02-17 0:00 ` Hyman Rosen
2000-02-17 0:00 ` Robert A Duff
2000-02-17 0:00 ` Hyman Rosen
2000-02-17 0:00 ` Robert A Duff
2000-02-17 0:00 ` Hyman Rosen
[not found] ` <88iuk2$s6d3@ftp.kvaerner.com>
2000-03-05 0:00 ` [OT] C and in-band signalling (was: Re: Announce: OpenToken 2.0 released) Florian Weimer
2000-03-06 0:00 ` Tarjei T. Jensen
2000-03-06 0:00 ` Keith Thompson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox