delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/07/17:02:42

From: pjfarley AT dorsai DOT org (Peter J. Farley III)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem with fstreams...
Date: Sat, 30 Aug 1997 01:47:08 GMT
Organization: None
Lines: 24
Message-ID: <34077a34.845806@snews.zippo.com>
References: <Pine DOT SGI DOT 3 DOT 93 DOT 970829111108 DOT 28565A-100000 AT gibson> <5u62mh$9l6 AT freenet-news DOT carleton DOT ca>
NNTP-Posting-Host: news.newsdawg.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) wrote:
<Snipped>
>And in C++, ios::binary in the streap initializing.
>
>(What is ios::binary really? ios must be a class or something. Or maybe
>it's an enum?)

Paul,

Yes, it's an enum, part of lang\cxx\streambuf.h:

enum open_mode {
    in = _IO_INPUT,
    out = _IO_OUTPUT,
    ate = _IO_ATEND,
    app = _IO_APPEND,
    trunc = _IO_TRUNC,
    nocreate = _IO_NOCREATE,
    noreplace = _IO_NOREPLACE,
    binary = _IOS_BIN,
    bin = _IOS_BIN };

----------------------------------------------------
Peter J. Farley III (pjfarley AT dorsai DOT org)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019