Re: [Dev-C++] how to redirect clog??
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Zodiaq <zo...@ac...> - 2003-07-17 14:55:59
|
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 |