Thread View: gnu.g++.help
1 messages
1 total messages
Started by Jason Rosenberg
Tue, 08 Sep 1992 10:54
Need help on class fstream (can't find any doc)
Author: Jason Rosenberg
Date: Tue, 08 Sep 1992 10:54
Date: Tue, 08 Sep 1992 10:54
26 lines
1456 bytes
1456 bytes
Hello,
I have been playing around with the class fstream in the g++ library. I
am trying to understand its intended usage and how best to use it.
I was unable to find any documentation about it.
The open method returns a void. What is the best way to test if the open
operation was a success. So far, I have only been able to successfully
use the filedesc() method, to test if it is not -1. Is there any other
way?
I am trying to create a derived stream class that can be assigned freely
to cout,cin and cerr, and to read and write to files. So far, fstream
is the only "base" class I can use from the g++ library. However,
I have not been able to get it to work (see my bug report post on
gnu.g++.lib.bug).
Thanks for any help.....
Jason
--
Jason Rosenberg Computer Science Department
jason@cs.ucla.edu University of California
{uunet,rutgers,ucbvax}!ucla-cs!jason Los Angeles, CA 90024
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads