Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!cs.utexas.edu!yale!ox.com!umich!umeecs!sparky.eecs.umich.edu!bagchi From: bagchi@sparky.eecs.umich.edu (Ranjan Bagchi) Newsgroups: comp.lang.c++ Subject: ostream&(char *)? Message-ID: <2528@zipeecs.umich.edu> Date: 6 Jun 90 01:36:38 GMT Sender: news@zip.eecs.umich.edu Reply-To: bagchi@sparky.eecs.umich.edu (Ranjan Bagchi) Organization: University of Michigan EECS Dept., Ann Arbor, MI Lines: 12 I need to access the character data which would normally be put to an ostream, for further use in my program. Is there any way (ideally) to declare a character buffer, foo, to be an ostream, so that foo << bar, with bar being some kind of object class, would leave me with everything that would ordinarily go to the standard output/file in the foo buffer? If not, is there some kind of kludgy workaround that works under g++? -rj bagchi@eecs.umich.edu