Topic: ios::binary
Author: bkline%occs.nlm.nih.gov (Bob Kline)
Date: Tue, 3 May 94 02:00:19 GMT Raw View
Pete Becker (pete@genghis.interbase.borland.com) wrote:
: Your understanding is wrong. ios::binary is still there, and there
: hasn't been any suggestion that it be removed.
: -- Pete
Pete:
Thanks for setting me straight. Glad to know the rumor was unfounded.
I've tried several times to reply via email, but all attempts have
bounced. Is your address (extracted above by the news reader)
incorrect? I have a related question (having more to do with
Borland's implementation of the iostreams package, and thus
inappropriate for posting to this forum).
--
/*----------------------------------------------------------------------*/
/* Bob Kline CSI Technologies */
/* bkline@smtp.csof.com Corporate Software, Inc. */
/* voice: (703) 522-0820 fax: (703) 522-5407 */
/*----------------------------------------------------------------------*/
Author: bkline%occs.nlm.nih.gov (Bob Kline)
Date: Sat, 23 Apr 94 11:39:52 GMT Raw View
I understand that the ANSI draft documents have dropped language
which was present in earlier versions which supported a standard
method for indicating that a stream should not have text trans-
lations performed on it (that is, the bytes should be read or
written in their raw, or binary state, without, for example,
newline character mapping normally used by the target platform).
Is this still true? Can someone enlighten me as to the motivation
for dropping this support from the standard? It seems a step
backward, since this support in the ANSI C standard is what
makes it possible to write portable code for binary file I/O
using the stdio package. Is the committee hoping that developers
will use the stdio package for binary file I/O instead of the
iostream package? Or is someone getting a little kickback for
every #ifdef preprocessors encounter :)? Are there problems
implementors have encountered with the stdio "rb" or "wb"
method that I've never heard about? I very much hope the
committee will give consideration to restoring this support.
Thanks.
--
/*----------------------------------------------------------------------*/
/* Bob Kline CSI Technologies */
/* bkline@smtp.csof.com Corporate Software, Inc. */
/* voice: (703) 522-0820 fax: (703) 522-5407 */
/*----------------------------------------------------------------------*/
Author: pete@genghis.interbase.borland.com (Pete Becker)
Date: Sat, 23 Apr 1994 16:23:12 GMT Raw View
In article <1994Apr23.113952.14951@nlm.nih.gov>,
Bob Kline <bkline%occs.nlm.nih.gov> wrote:
>I understand that the ANSI draft documents have dropped language
>which was present in earlier versions which supported a standard
>method for indicating that a stream should not have text trans-
>lations performed on it (that is, the bytes should be read or
>written in their raw, or binary state, without, for example,
>newline character mapping normally used by the target platform).
Your understanding is wrong. ios::binary is still there, and there
hasn't been any suggestion that it be removed.
-- Pete