void Write(const TDesC& str) { if (cons) { cons->Write(str); } if (foutput.SubSessionHandle()!=0) { TInt len=str.Length()*2; TPtrC8 p( (const TUint8*)str.Ptr(), len ); foutput.Write(p); foutput.Flush(); } }