Mail Archives: djgpp/1996/05/01/22:41:22
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
<schwarz AT escmail DOT orl DOT mmc DOT com> Voice: (407)826-7961
- Raw text -