This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]