FW: A general g++ question
Phil Edwards
phil@jaj.com
Fri Feb 21 15:50:00 GMT 2003
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
More information about the Libstdc++
mailing list