stif/Logger/src/FileOutput.cpp
changeset 13 33016869e0dd
parent 0 a03f92240627
child 30 86a2e675b80a
--- a/stif/Logger/src/FileOutput.cpp	Tue Feb 02 01:57:15 2010 +0200
+++ b/stif/Logger/src/FileOutput.cpp	Fri Apr 16 16:37:27 2010 +0300
@@ -476,10 +476,13 @@
         iFileAndDirName.Insert( iFileAndDirName.Length(), txtPrt );
         }
 
-    TBool isOpen( EFalse );
+//  TBool isOpen( EFalse );
     TInt ret( KErrNone );
 
-    iIsFileOpen = iFileSession.IsFileOpen( iFileAndDirName, isOpen );
+  
+    iIsFileOpen=iFile.Open( iFileSession, iFileAndDirName,
+            EFileWrite | EFileStreamText |
+                    EFileShareAny );
     if( iIsFileOpen == KErrNotFound )
         {
         ret =  iFile.Create( iFileSession, iFileAndDirName, 
@@ -498,9 +501,8 @@
         }
     else if( iIsFileOpen == KErrNone )
         {
-        ret = iFile.Open( iFileSession, iFileAndDirName,
-                            EFileWrite | EFileStreamText |
-                                    EFileShareAny );
+      
+        ret=KErrNone;
         }
     // Probably path not found
     else