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]
Other format: [Raw text]

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


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