home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
-
- 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
-