trace files should not be opened for appending
authortomh@ubuntu
Wed, 21 Feb 2007 06:42:58 -0800
changeset 326 fd46d0ded624
parent 322 45c63d88ce45
child 327 f047bc5f70e7
trace files should not be opened for appending
src/common/trace-writer.cc
--- a/src/common/trace-writer.cc	Wed Feb 21 18:28:25 2007 +0100
+++ b/src/common/trace-writer.cc	Wed Feb 21 06:42:58 2007 -0800
@@ -82,7 +82,7 @@
 {
   NS_DEBUG ("TraceWriter()::Open (\"" << filename << "\")")
 
-  m_filestr.open (filename.c_str(), std::ios::out | std::ios::app);
+  m_filestr.open (filename.c_str(), std::ios::out);
 }
 
   void
@@ -90,7 +90,7 @@
 {
   NS_DEBUG ("TraceWriter()::Open (\"" << filename << "\")")
 
-  m_filestr.open (filename, std::ios::out | std::ios::app);
+  m_filestr.open (filename, std::ios::out);
 }
 
   void