> no its opening the file mylog.txt but it is not writing any thing to it
> why ?

probably, you test it before it flushes?
try to flush() your stream, or disable buffering (oStream->rdbuf()->pubsetbuf(0, 0);)


Explore the seven wonders of the world Learn more!