nettools/conntest/src/ConnTestContainer.cpp
changeset 2 4cefe9af9cf4
parent 1 e329958deeba
equal deleted inserted replaced
1:e329958deeba 2:4cefe9af9cf4
   450         {
   450         {
   451         User::Panic (KPanicConnTest, EConnTestContainer);
   451         User::Panic (KPanicConnTest, EConnTestContainer);
   452         }
   452         }
   453     }
   453     }
   454 
   454 
       
   455 // ----------------------------------------------------------------------------
       
   456 // CConnTestContainer::SaveOutputWindowToFile
       
   457 // Store console output log to a file.
       
   458 // ----------------------------------------------------------------------------
       
   459 //
       
   460 void CConnTestContainer::SaveOutputWindowToFile()
       
   461     {
       
   462     TInt error;
       
   463     _LIT( KOutputInternalMemory, "c:\\data\\conntest_output.txt" );
       
   464     
       
   465     TBuf<100> filename( KOutputInternalMemory );
       
   466     
       
   467     TRAP( error, iRichText->ExportAsTextL( filename, CPlainText::EOrganiseByParagraph, 0));
       
   468     
       
   469     if(error != KErrNone)
       
   470          {
       
   471          User::Panic (KPanicConnTest, EConnTestContainer);
       
   472          }
       
   473     }
   455 
   474 
   456 // End of File  
   475 // End of File