home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!stanford.edu!lucid.com!lucid.com!jss
- From: jss@lucid.com (Jerry Schwarz)
- Subject: Re: Binary Stream IO
- Message-ID: <1992Aug17.230357.7892@lucid.com>
- Sender: usenet@lucid.com
- Reply-To: jss@lucid.com (Jerry Schwarz)
- Organization: Lucid, Inc.
- References: <1992Aug13.152405.16170@ucc.su.OZ.AU> <593@lax.lax.pe-nelson.com> <1992Aug17.164623.12017@mksol.dseg.ti.com> <1992Aug17.182148.955@news2.cis.umn.edu>
- Date: Mon, 17 Aug 92 23:03:57 GMT
- Lines: 10
-
- |> Is there a way to do Binary i/o with the stream classes? In other words, can I
- |> do "oFile << double_value" in such a way that double_value is stored using its
- |> binary representation rather than as an ascii string?
-
-
- You can't use an inserter(<<) operator but you can do
-
- oFile.write(double_value,sizeof(double_value))
-
- -- Jerry Schwarz
-