Mail Archives: djgpp/1996/05/01/18:13:13
Xref: | news2.mv.net comp.os.msdos.djgpp:3305
|
From: | dpsm AT en DOT com (Dale P. Smith)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: reading binary I/O with iostream
|
Date: | Wed, 01 May 1996 15:20:47 GMT
|
Organization: | RheoActive
|
Lines: | 26
|
Message-ID: | <31877cbf.7993509@news.en.com>
|
References: | <Dqnzyr DOT rn AT news DOT dlr DOT de>
|
NNTP-Posting-Host: | p7-ts4.en.net
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
thore AT ts DOT go DOT dlr DOT de (Thore Herberg) wrote:
>Is there a way to persuade "cin" and "cout" to read and write
>
>data in binary format (like fwrite and fread) ? None of the books on C++ that I have
>
>skimmed trough so far have ever mentioned I/O handling of data in binary format.
You can do
ifstream SomeName(filename, ios:in|ios::binary);
in DJGPP. Watcom C++ (I have 10.0a) has ios::text and ios::binary.
I don't do that much C++, but maybe these could be applied to cin and
cout with something like:
cout.setf(ios::binary);
???
>Where can I find a *complete* documentation of the standart C++ libraries ?
There is the info files from GNU, P.J. Plauger has a book on the
standard C++ libraries, and as always: "Reach for the Source, Luke!"
Dale
Dale P. Smith
dpsm AT en DOT com home
dpsm AT lubrizol DOT com work
- Raw text -