I need to to create a stream output as like cout;
will write everything to a file which i have specified or default.
I had came across friend ostream& operator << (ofstream& fout,ClassA &obj) etc. But I need to do as like 'QTextStream' in Qt how can i do that?
[QTextStream &operator<<(const QString &s);] FileStream &operator<<(const string &s);