This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
A general g++ question
- From: "Ajay Bansal" <Ajay_Bansal at infosys dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 21 Feb 2003 16:09:01 +0530
- 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