A
Alexander Stippler
Hi,
The short story: I have to redirect stdout (not cout!!) to an ostream.
How can I manage this?
The long story:
I use the NAGC numerics library with C++ and want to use its output
routines for e.g. complex matrices. The problem: You can either print
to a file (given by filename) or to stdout. To call the NAGC-method
within an operator<< thus I have to redirect stdout to the given
ostream. But how can I initialize an ostream from a FILE *?
regards,
alex
The short story: I have to redirect stdout (not cout!!) to an ostream.
How can I manage this?
The long story:
I use the NAGC numerics library with C++ and want to use its output
routines for e.g. complex matrices. The problem: You can either print
to a file (given by filename) or to stdout. To call the NAGC-method
within an operator<< thus I have to redirect stdout to the given
ostream. But how can I initialize an ostream from a FILE *?
regards,
alex