This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
FW: A general g++ question
- From: "Ajay Bansal" <Ajay_Bansal at infosys dot com>
- To: <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 21 Feb 2003 17:29:10 +0530
- Subject: FW: A general g++ question
-----Original Message-----
From: Ajay Bansal
Sent: Friday, February 21, 2003 4:09 PM
To: gcc-help at gcc dot gnu dot 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