This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.1.1 - read of istream with ios::bin doesnt work?
- To: johann at ai dot univie dot ac dot at
- Subject: Re: egcs-1.1.1 - read of istream with ios::bin doesnt work?
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Thu, 2 Dec 1999 22:47:59 +0100
- CC: gcc-bugs at gcc dot gnu dot org
- References: <3845656E.39939CAB@ai.univie.ac.at>
> I wonder why
> ifstream in ("test1.file",ios::bin);
> in.read(buffer,10);
> will read in 0 characters (this is also returned
> by in.gcount()), while
> ifstream in ("test1.file");
> in.read(&buf,10);
> will work just OK.
Thanks for your bug report. Unfortunately, you provide too little
information to reproduce the bug. What is buffer? What is buf? What is
test1.file? Please give complete source.
Thanks,
Martin