This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: fstream attach for g++3.2.1
- From: Craig Rodrigues <rodrigc at attbi dot com>
- To: Ta-Cheng Lin <tclin1998 at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 13 Feb 2003 11:58:46 -0500
- Subject: Re: fstream attach for g++3.2.1
- References: <20030213164259.4182.qmail@web13602.mail.yahoo.com>
On Thu, Feb 13, 2003 at 08:42:59AM -0800, Ta-Cheng Lin wrote:
> Hello All:
>
> I ran into a problem when migrating g++ to 3.2.1.
>
> I used to use fstream.attach(FILE *fp) to write
> outputs to an opened file pointer.
>
> But g+=3.2.1 doesn't support/have fatream attach(),
> What is the alternative for that ?
See reference about stdio_filebuf here:
http://gcc.gnu.org/onlinedocs/libstdc++/27_io/howto.html#11
--
Craig Rodrigues
http://home.attbi.com/~rodrigc
rodrigc@attbi.com