nettools/conntest/src/ConnTestContainer.cpp
changeset 2 4cefe9af9cf4
parent 1 e329958deeba
--- a/nettools/conntest/src/ConnTestContainer.cpp	Mon Jan 18 20:08:29 2010 +0200
+++ b/nettools/conntest/src/ConnTestContainer.cpp	Tue Feb 02 00:02:42 2010 +0200
@@ -452,5 +452,24 @@
         }
     }
 
+// ----------------------------------------------------------------------------
+// CConnTestContainer::SaveOutputWindowToFile
+// Store console output log to a file.
+// ----------------------------------------------------------------------------
+//
+void CConnTestContainer::SaveOutputWindowToFile()
+    {
+    TInt error;
+    _LIT( KOutputInternalMemory, "c:\\data\\conntest_output.txt" );
+    
+    TBuf<100> filename( KOutputInternalMemory );
+    
+    TRAP( error, iRichText->ExportAsTextL( filename, CPlainText::EOrganiseByParagraph, 0));
+    
+    if(error != KErrNone)
+         {
+         User::Panic (KPanicConnTest, EConnTestContainer);
+         }
+    }
 
 // End of File