home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / g / lib / bug / 584 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.1 KB  |  32 lines

  1. Newsgroups: gnu.g++.lib.bug
  2. Path: sparky!uunet!stanford.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!telesys-innov.FR!sms
  3. From: sms@telesys-innov.FR (Samir Mawa SOW)
  4. Subject: Bug in fstream->eof()?
  5. Message-ID: <9211091411.AA10432@saturnus.telesys-innov.fr>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 9 Nov 1992 14:11:30 GMT
  10. Approved: bug-lib-g++@prep.ai.mit.edu
  11. Lines: 19
  12.  
  13. hi,
  14.  
  15. I am a new user of your g++ lib (2.2) and I think that something is wrong with the eof method of the fstream-class.
  16.  
  17. I attempt to use it in a search-program, which uses a ifstream object, but the returned value of eof() is always 0 even on an empty file.
  18.  
  19.  
  20. Before writing this mail, I have made several tests
  21.     - I've replaced the eof() method by the fail() method and the program ran
  22.       properly.
  23.     - I've replaced the g++ library with the DEC c++ lib and the program ran
  24.       properly
  25.  
  26. So it seems that the bug comes from the eof() method. Is this a known bug? And if so, is there already a fix for it?
  27.  
  28. Thanks for your cooperation.
  29.  
  30. sincerly.    Samir Sow
  31.  
  32.