This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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]

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]