home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / g / help / 1201 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.4 KB  |  39 lines

  1. Newsgroups: gnu.g++.help
  2. Path: sparky!uunet!news.claremont.edu!ucivax!ucla-cs!lanai.cs.ucla.edu!jason
  3. From: jason@lanai.cs.ucla.edu (Jason Rosenberg)
  4. Subject: Need help on class fstream (can't find any doc)
  5. Message-ID: <1992Sep8.105412.29887@cs.ucla.edu>
  6. Originator: jason@lanai.cs.ucla.edu
  7. Sender: usenet@cs.ucla.edu (Mr Usenet)
  8. Nntp-Posting-Host: lanai.cs.ucla.edu
  9. Organization: UCLA Computer Science Department
  10. Date: Tue, 8 Sep 92 10:54:12 GMT
  11. Lines: 26
  12.  
  13. Hello,
  14.  
  15. I have been playing around with the class fstream in the g++ library.  I
  16. am trying to understand its intended usage and how best to use it.
  17. I was unable to find any documentation about it.  
  18.  
  19. The open method returns a void.  What is the best way to test if the open
  20. operation was a success.  So far, I have only been able to successfully
  21. use the filedesc() method, to test if it is not -1.  Is there any other
  22. way?
  23.  
  24. I am trying to create a derived stream class that can be assigned freely
  25. to cout,cin and cerr, and to read and write to files.  So far, fstream
  26. is the only "base" class I can use from the g++ library.  However,
  27. I have not been able to get it to work (see my bug report post on
  28. gnu.g++.lib.bug).
  29.  
  30. Thanks for any help.....
  31.  
  32. Jason
  33.  
  34.  
  35. -- 
  36. Jason Rosenberg                           Computer Science Department
  37. jason@cs.ucla.edu                         University of California
  38. {uunet,rutgers,ucbvax}!ucla-cs!jason      Los Angeles, CA  90024
  39.