www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/02/23:35:58

Xref: news2.mv.net comp.os.msdos.djgpp:3367
From: mcantos AT ocean DOT com DOT au (Marcelo Cantos)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: reading binary I/O with iostream
Date: Wed, 01 May 96 13:03:16 GMT
Organization: (private)
Lines: 18
Message-ID: <4m7quu$5oo@news.mel.aone.net.au>
References: <Dqnzyr DOT rn AT news DOT dlr DOT de>
NNTP-Posting-Host: 203.12.234.193
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <Dqnzyr DOT rn AT news DOT dlr DOT de>, thore AT ts DOT go DOT dlr DOT de 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.

cin and cout are essentially aliases for the console (keyboard and screen), 
which are intrinsically text-based devices. Strictly speaking, it is 
inappropriate to treat them as binary streams.

>Where can I find a *complete* documentation of the standart C++ libraries ? 

Sorry, I don't know.

- Raw text -


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