Xref: news2.mv.net comp.os.msdos.djgpp:3312 From: Jim Schwarz x3-7961 Newsgroups: comp.os.msdos.djgpp Subject: Re: reading binary I/O with iostream Date: Wed, 01 May 1996 15:00:17 -0400 Organization: Martin Marietta - Information Systems Lines: 26 Message-ID: <3187B4C1.3688@escmail.orl.mmc.com> References: NNTP-Posting-Host: marino.orl.mmc.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: thore AT ts DOT go DOT dlr DOT de DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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. > > Where can I find a *complete* documentation of the standart C++ libraries ? > > Th. Herberg cin and cout are assigned to the console. To do binary, or any other kind of I/O requires you to use the iostream class, which cin and cout are derived from. You can find information on the iostream class in the info docs included with DJGPP int he iostreams.h section. There is a book I am looking for called C++ the Complete Reference by Shlidt who wrote the books Teach yourself C and Teach yourself C++ that probably has this info. Also, his book, teach yourself C++ did mention doing binary I/O with the iostream class. -- James E. Schwarz, Jr. PE Staff Systems Engineer - Armor Programs Lockheed Martin Corporation Information Systems 12506 Lk Underhill Rd. MP 823 Orlando, Fla 32825 Voice: (407)826-7961