From 9221449198889726075
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,975e78bef1b26ee8
X-Google-Attributes: gidf78e5,public
From: dietmar.kuehl@claas-solutions.de
Subject: Re: iostream -> FILE*
Date: 1998/05/20
Message-ID: <6jv28m$u37$1@nnrp1.dejanews.com>#1/1
X-Deja-AN: 355061564
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <3561480D.18DAE41D@acco.net>
X-Original-Date: Wed, 20 May 1998 17:01:10 GMT
X-Http-User-Agent: Mozilla/4.02 [en] (WinNT; I) via proxy gateway CERN-HTTPD/3.0 libwww/2.17
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Wed May 20 17:01:10 1998 GMT
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANWM8XeEDnX0m9pzZAQHBUgGAmU1VRgLZmsZzwkFXGJqNKQJHqXquTvT0 tvU3N1IVEuULHHVTHtlzfgcTPvqLcloe =Elmw
Newsgroups: comp.std.c++


Hi,
In article <3561480D.18DAE41D@acco.net>,
  Marc Dzaebel <marc@acco.net> wrote:
> I have C I/O-functions operating on FILE*stream. Is it possible to get a
> FILE pointer
> from any iostream (e.g. istrstream)?

No. It is not even possible to get a 'FILE*' from an '[io]fstream'. However,
there are some libraries (eg. the current libg++) where you can use an
arbitrary 'streambuf*' when a 'FILE*' is required (at least, libg++ had a
feature like this). But, of course, this is not a portable feature.

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



