delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/09/18/13:43:14

Date: Fri, 18 Sep 92 13:18:57 EDT
From: DJ Delorie <dj AT athena DOT ctron DOT com>
To: anil AT eecg DOT toronto DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Outputting binary data to a file

>The faq seems to indicate you can set binary mode for file IO if you are
>using C, but I can't find anything for C++.

fopen(...,"wb") gives you a binary stream, as does open(...,O_BINARY).
I don't think there's a mechanism for C++ stream objects.

DJ
dj AT ctron DOT com
Life is a banana.

- Raw text -


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