Index: trunk/BNC/rinex/bncpostprocess.cpp
===================================================================
--- trunk/BNC/rinex/bncpostprocess.cpp	(revision 3842)
+++ trunk/BNC/rinex/bncpostprocess.cpp	(revision 3843)
@@ -110,5 +110,5 @@
   }
   else {
-    _rnxObsFile = new t_rnxObsFile(_opt->obsFileName);
+    _rnxObsFile = new t_rnxObsFile(_opt->obsFileName, t_rnxObsFile::input);
     _rnxNavFile = new t_rnxNavFile(_opt->navFileName);
     _pppClient  = new bncPPPclient("POST", _opt, false);
Index: trunk/BNC/rinex/rnxobsfile.cpp
===================================================================
--- trunk/BNC/rinex/rnxobsfile.cpp	(revision 3842)
+++ trunk/BNC/rinex/rnxobsfile.cpp	(revision 3843)
@@ -220,13 +220,18 @@
 // Constructor
 ////////////////////////////////////////////////////////////////////////////
-t_rnxObsFile::t_rnxObsFile(const QString& fileName) {
+t_rnxObsFile::t_rnxObsFile(const QString& fileName, e_inpOut inpOut) {
+  _inpOut       = inpOut;
   _stream       = 0;
   _flgPowerFail = false;
-  open(fileName);
+  if (_inpOut == input) {
+    openRead(fileName);
+  }
+  else {
+  }
 }
 
 // Open
 ////////////////////////////////////////////////////////////////////////////
-void t_rnxObsFile::open(const QString& fileName) {
+void t_rnxObsFile::openRead(const QString& fileName) {
 
   _fileName = fileName; expandEnvVar(_fileName);
Index: trunk/BNC/rinex/rnxobsfile.h
===================================================================
--- trunk/BNC/rinex/rnxobsfile.h	(revision 3842)
+++ trunk/BNC/rinex/rnxobsfile.h	(revision 3843)
@@ -63,5 +63,7 @@
   };
 
-  t_rnxObsFile(const QString& fileName);
+  enum e_inpOut {input, output};
+
+  t_rnxObsFile(const QString& fileName, e_inpOut inpOut);
   ~t_rnxObsFile();
   
@@ -88,5 +90,5 @@
  protected:
   t_rnxObsFile() {};
-  void open(const QString& fileName);
+  void openRead(const QString& fileName);
   void close();
 
@@ -121,4 +123,5 @@
   void handleEpochFlag(int flag, const QString& line);
 
+  e_inpOut       _inpOut;
   QFile*         _file;
   QString        _fileName;
Index: trunk/BNC/rinex/teqcedit.cpp
===================================================================
--- trunk/BNC/rinex/teqcedit.cpp	(revision 3842)
+++ trunk/BNC/rinex/teqcedit.cpp	(revision 3843)
@@ -68,5 +68,5 @@
   while (it.hasNext()) {
     QString fileName = it.next();
-    t_rnxObsFile* rnxObsFile = new t_rnxObsFile(fileName);
+    t_rnxObsFile* rnxObsFile = new t_rnxObsFile(fileName, t_rnxObsFile::input);
     _rnxObsFiles.append(rnxObsFile);
   }
