> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, March 23, 2002 2:08 AM
> To: [EMAIL PROTECTED]
> Subject: RE: GCC program always opening files in text mode
> 
> 
> 
> Thanks, adding "t" to fopen did help.  But how do I specify 
> text mode for an ofstream?

With difficulty? Seriously though IIRC the C++ specs right ofstreams are
meant to default to text, and provide ios::binary for binary data.

If the above is correct, then I suspect that a patch to libg++ (possibly
just to the ifstream templates is in order.

Rob

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to