Hi,
I have a C++ code that has a lot of functions which receives ostream as argument. I now want to string manipulate the content of this ostream. For example, I want to replace all occurrence of certain word with other word.
The actual parameter to these functions is always ofstream. Is there a way to change the creation of this ofstream, such that it will put such manipulating function?
thanks.