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]

Re: FW: A general g++ question


On Fri, Feb 21, 2003 at 05:29:10PM +0530, Ajay Bansal wrote:
> 
> I can get the flags with which a file was opened (with open command)
> using fcntl.
> 
> Any similar option for fstream???

No.

> 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?

http://gcc.gnu.org/onlinedocs/libstdc++/27_io/howto.html#11

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


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