This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/4419: ifstream::get(buffer,len) stops reading when an empty line appears.
- From: paolo at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, paolo at gcc dot gnu dot org, pavenis at lanet dot lv, salvador at inti dot gov dot ar
- Date: 8 Dec 2001 10:42:47 -0000
- Subject: Re: libstdc++/4419: ifstream::get(buffer,len) stops reading when an empty line appears.
Synopsis: ifstream::get(buffer,len) stops reading when an empty line appears.
Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Sat Dec 8 02:42:46 2001
Responsible-Changed-Why:
Looking into it.
State-Changed-From-To: open->feedback
State-Changed-By: paolo
State-Changed-When: Sat Dec 8 02:42:46 2001
State-Changed-Why:
Why don't you use something like:
while(!fileToView.eof())
{
fileToView.getline(line, sizeof line);
printf("%d\n",strlen(line));
}
???
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4419&database=gcc