Index: trunk/BNC/bncpostprocess.cpp
===================================================================
--- trunk/BNC/bncpostprocess.cpp	(revision 3645)
+++ trunk/BNC/bncpostprocess.cpp	(revision 3646)
@@ -44,4 +44,6 @@
 #include "pppopt.h"
 #include "bncpppclient.h"
+#include "rnxobsfile.h"
+#include "rnxnavfile.h"
 
 using namespace std;
@@ -50,5 +52,8 @@
 ////////////////////////////////////////////////////////////////////////////
 t_postProcessing::t_postProcessing(QObject* parent) : QThread(parent) {
-  _opt = new t_pppOpt();
+  _opt        = new t_pppOpt();
+  _rnxObsFile = 0;
+  _rnxNavFile = 0;
+  _pppClient  = 0;
 }
 
@@ -57,6 +62,8 @@
 t_postProcessing::~t_postProcessing() {
   cout << "~t_postProcessing" << endl;
+  delete _pppClient;
+  delete _rnxNavFile;
+  delete _rnxObsFile;
   delete _opt;
-  delete _pppClient;
 }
 
@@ -75,5 +82,7 @@
   }
   else {
-    _pppClient = new bncPPPclient("POST", _opt, false);
+    _rnxObsFile = new t_rnxObsFile(_opt->obsFileName);
+    _rnxNavFile = new t_rnxNavFile(_opt->navFileName);
+    _pppClient  = new bncPPPclient("POST", _opt, false);
 
     connect(this, SIGNAL(newEphGPS(gpsephemeris)),
Index: trunk/BNC/bncpostprocess.h
===================================================================
--- trunk/BNC/bncpostprocess.h	(revision 3645)
+++ trunk/BNC/bncpostprocess.h	(revision 3646)
@@ -34,4 +34,6 @@
 class t_pppOpt;
 class bncPPPclient;
+class t_rnxObsFile;
+class t_rnxNavFile;
 
 class t_postProcessing : public QThread {
@@ -61,4 +63,6 @@
   t_pppOpt*     _opt;
   bncPPPclient* _pppClient;
+  t_rnxObsFile* _rnxObsFile;
+  t_rnxNavFile* _rnxNavFile;
 };
 
Index: trunk/BNC/rnxobsfile.cpp
===================================================================
--- trunk/BNC/rnxobsfile.cpp	(revision 3645)
+++ trunk/BNC/rnxobsfile.cpp	(revision 3646)
@@ -41,4 +41,5 @@
 #include <iostream>
 #include "rnxobsfile.h"
+#include "bncutils.h"
 
 using namespace std;
@@ -46,5 +47,32 @@
 // Constructor
 ////////////////////////////////////////////////////////////////////////////
-t_rnxObsFile::t_rnxObsFile(const QString& fileName) {
+t_rnxObsFile::t_rnxObsHeader::t_rnxObsHeader() {
+}
+
+// Destructor
+////////////////////////////////////////////////////////////////////////////
+t_rnxObsFile::t_rnxObsHeader::~t_rnxObsHeader() {
+}
+
+// Read Header
+////////////////////////////////////////////////////////////////////////////
+t_irc t_rnxObsFile::t_rnxObsHeader::read(QTextStream* stream) {
+  while (stream->status() == QTextStream::Ok) {
+    QString line = stream->readLine();
+    cout << line.toAscii().data();
+  }
+
+  return success;
+}
+
+// Constructor
+////////////////////////////////////////////////////////////////////////////
+t_rnxObsFile::t_rnxObsFile(QString fileName) {
+  expandEnvVar(fileName);
+  _file   = new QFile(fileName);
+  _file->open(QIODevice::ReadOnly | QIODevice::Text);
+  _stream = new QTextStream();
+  _stream->setDevice(_file);
+  _header.read(_stream);
 }
 
@@ -52,4 +80,6 @@
 ////////////////////////////////////////////////////////////////////////////
 t_rnxObsFile::~t_rnxObsFile() {
+  delete _stream;
+  delete _file;
 }
 
Index: trunk/BNC/rnxobsfile.h
===================================================================
--- trunk/BNC/rnxobsfile.h	(revision 3645)
+++ trunk/BNC/rnxobsfile.h	(revision 3646)
@@ -33,7 +33,15 @@
 
 class t_rnxObsFile {
+
+  class t_rnxObsHeader {
+   public:
+    t_rnxObsHeader();
+    ~t_rnxObsHeader();
+    t_irc read(QTextStream* stream);
+   private:
+  };
  
  public:
-  t_rnxObsFile(const QString& fileName);
+  t_rnxObsFile(QString fileName);
   ~t_rnxObsFile();
 
@@ -41,4 +49,7 @@
 
  private:
+  t_rnxObsHeader _header;
+  QFile*         _file;
+  QTextStream*   _stream;
 };
 
