Newsgroups: comp.os.msdos.djgpp From: manni DOT heumann AT gmx DOT de (Manni Heumann) Subject: Re: DJGPP/GPP: can not open C++ [io]fstream in binary mode References: X-Newsreader: News Xpress 2.01 Date: Wed, 19 Jan 2000 13:29:38 GMT NNTP-Posting-Host: dhcp33-226.uni-bielefeld.de Message-ID: <3885bc46$1@news.uni-bielefeld.de> X-Trace: 19 Jan 2000 14:29:42 +0200, dhcp33-226.uni-bielefeld.de Lines: 19 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article , djgpp AT delorie DOT com wrote: > >On Tue, 18 Jan 2000, Leonid Pauzner wrote: > >> I can not open fstream in BINARY mode, >> e.g. I got zero size file from the sample program below. > >Does section 9.3 of the FAQ help? I don't think it does, Eli. And I don't think it should, either. The code of the original poster showed a mistake that is very common. Just like the questions that pop up in other newsgroups that deal with C++. Maybe all these people all read the same bad book. -- Manni