FW: A general g++ question

Ajay Bansal Ajay_Bansal@infosys.com
Fri Feb 21 11:57:00 GMT 2003



-----Original Message-----
From: Ajay Bansal 
Sent: Friday, February 21, 2003 4:09 PM
To: gcc-help@gcc.gnu.org
Subject: A general g++ question


Hi All

I can get the flags with which a file was opened (with open command)
using fcntl.

Any similar option for fstream???


Actually I am trying to implement the counterpart for overloaded
operator for fstream class. I have class with fstream as a member. Nor
for writing into this object, I define a function as

        friend fstream& operator<<(fstream&, const MyClass &);

Now, if I have to shift to file descriptor (int), what could be an
equivalent code?

-Regards
Ajay



More information about the Libstdc++ mailing list