Article View: gnu.g++.help
Article #674ostream
From: Suran de SILVA
Date: Fri, 08 Jan 1993 08:34
Date: Fri, 08 Jan 1993 08:34
22 lines
874 bytes
874 bytes
Hi,
I would like to bind a file to ostream, ie. using code looking something
like:
FILE *fp;
fp = fopen("myFile.dat","w");
ostream myfile(fp);
myfile << "This is new data:";
I was able to do this okay in g++ v1.39.1 with libg++ v1.39.0
but using g++ v2.3.3 with libg++ v2.3 this fails.
Would someone now how to correctly attach a FILE pointer to an
ostream in order to do this, in the newer g++?
Thanks,
Suran.
suran@nff.ncl.omron.co.jp
Technical Details
Message-ID:
<SURAN.93Jan8173411@banquo.nff.ncl.omron.co.jp>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!sun-barr!sh.wide!wnoc-kyo!omrongw!frf!suranShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!sun-barr!sh.wide!wnoc-kyo!omrongw!frf!suran From: suran@nff.ncl.omron.co.jp (Suran de SILVA) Newsgroups: gnu.g++.help Subject: ostream Message-ID: <SURAN.93Jan8173411@banquo.nff.ncl.omron.co.jp> Date: 8 Jan 93 08:34:11 GMT Sender: news@frf.omron.co.jp Distribution: gnu Organization: OMRON Corp., Kyoto, Japan Lines: 22