libstdc++/4419: ifstream::get(buffer,len) stops reading when an empty line appears.

paolo@gcc.gnu.org paolo@gcc.gnu.org
Sat Dec 8 08:00:00 GMT 2001


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



More information about the Gcc-bugs mailing list