Index: /trunk/BNC/rinex/rnxobsfile.cpp
===================================================================
--- /trunk/BNC/rinex/rnxobsfile.cpp	(revision 3718)
+++ /trunk/BNC/rinex/rnxobsfile.cpp	(revision 3719)
@@ -248,6 +248,5 @@
       ttPrev = rnxEpo->tt;
     }
-    _stream->clear();
-    _stream->seekg(0, ios::beg);
+    _stream->seek(0);
     _header.read(_stream);
   }
@@ -321,5 +320,5 @@
 const t_rnxObsFile::t_rnxEpo* t_rnxObsFile::nextEpochV3() {
 
-  while ( _stream->->status() == QTextStream::Ok && !_stream->atEnd() ) {
+  while ( _stream->status() == QTextStream::Ok && !_stream->atEnd() ) {
 
     QString line = _stream->readLine();
@@ -356,7 +355,7 @@
     for (int iSat = 0; iSat < numSat; iSat++) {
       line = _stream->readLine();
-      _currEpo.rnxSat[iSat].satSys = line[0];
+      _currEpo.rnxSat[iSat].satSys = line.toAscii()[0];
       readInt(line, 1, 2, _currEpo.rnxSat[iSat].satNum);
-      char sys = line[0];
+      char sys = line.toAscii()[0];
       for (int iType = 0; iType < _header.nTypes(sys); iType++) {
         int pos = 3 + 16*iType;
@@ -390,5 +389,5 @@
 const t_rnxObsFile::t_rnxEpo* t_rnxObsFile::nextEpochV2() {
 
-  while ( _stream->->status() == QTextStream::Ok && !_stream->atEnd() ) {
+  while ( _stream->status() == QTextStream::Ok && !_stream->atEnd() ) {
 
     QString line = _stream->readLine();
@@ -436,5 +435,5 @@
       }
 
-      _currEpo.rnxSat[iSat].satSys = line[pos];
+      _currEpo.rnxSat[iSat].satSys = line.toAscii()[pos];
       readInt(line, pos + 1, 2, _currEpo.rnxSat[iSat].satNum);
 
