Hello Zodiaq and all Dev-C++ users,
Thursday, July 17, 2003, 4:26:11 PM, I wrote:
Z> Yo all Dev-cpp users,
Z> got one simple question that I can't find cure for:
Z> how to redirect clog for writing to file?? I tried creating ofstream
Z> 'over' a file, opening it for output and assigning it to cout - these two
Z> are both of type ostream, but with clog "opernator =" is private, so I
Z> can't use =. But there must be some way to change it (at least I hope
Z> so), but how??
Well, forget my last post... found solution here:
http://www.cplusplus.com/ref/iostream/ios/rdbuf.html
--
regards, Zodiaq
|