Mail Archives: djgpp/1997/08/28/16:52:04
James Coram <jcoram AT pacificnet DOT net> writes:
>
> I am having trouble using a binary ofstream with DJGPP. I get different
> results depending on how I compile my program...
>
> /*test.cc*/
> ...
>
> int main() {
> ofstream os("out", ios::binary);
> ...
I have not tried it but I suggest you try ios::out|ios::binary
for the open mode argument.
Just an idea. I'm not guaranteeing it will work.
--
Ian Miller, Dorset, UK
DJGPP 2.01, Win95 DOS box (LFN undefined, FNCASE=y)
- Raw text -