Index: trunk/BNC/rinex/rnxobsfile.cpp
===================================================================
--- trunk/BNC/rinex/rnxobsfile.cpp	(revision 3844)
+++ trunk/BNC/rinex/rnxobsfile.cpp	(revision 3845)
@@ -228,8 +228,9 @@
   }
   else {
-  }
-}
-
-// Open
+    openWrite(fileName);
+  }
+}
+
+// Open for input
 ////////////////////////////////////////////////////////////////////////////
 void t_rnxObsFile::openRead(const QString& fileName) {
@@ -275,4 +276,15 @@
     _header.read(_stream);
   }
+}
+
+// Open for output
+////////////////////////////////////////////////////////////////////////////
+void t_rnxObsFile::openWrite(const QString& fileName) {
+
+  _fileName = fileName; expandEnvVar(_fileName);
+  _file     = new QFile(_fileName);
+  _file->open(QIODevice::WriteOnly | QIODevice::Text);
+  _stream = new QTextStream();
+  _stream->setDevice(_file);
 }
 
@@ -530,2 +542,14 @@
   }
 }
+
+// Write Header
+////////////////////////////////////////////////////////////////////////////
+void t_rnxObsFile::writeHeader() {
+
+}
+
+// Write Data Epoch
+////////////////////////////////////////////////////////////////////////////
+void t_rnxObsFile::writeEpoch(const t_rnxEpo* epo) {
+
+}
Index: trunk/BNC/rinex/rnxobsfile.h
===================================================================
--- trunk/BNC/rinex/rnxobsfile.h	(revision 3844)
+++ trunk/BNC/rinex/rnxobsfile.h	(revision 3845)
@@ -91,4 +91,5 @@
   t_rnxObsFile() {};
   void openRead(const QString& fileName);
+  void openWrite(const QString& fileName);
   void close();
 
@@ -122,4 +123,6 @@
   const t_rnxObsHeader& header() const {return _header;}
   void setHeader(const t_rnxObsHeader& header);
+  void writeHeader();
+  void writeEpoch(const t_rnxEpo* epo);
 
  private:
