This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-1.1.1 - read of istream with ios::bin doesnt work?


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]