Index: /trunk/BNC/bncmodel.cpp
===================================================================
--- /trunk/BNC/bncmodel.cpp	(revision 2529)
+++ /trunk/BNC/bncmodel.cpp	(revision 2530)
@@ -759,5 +759,5 @@
          << setw(8)  << setprecision(3) << _neu[0]              << " "
          << setw(8)  << setprecision(3) << _neu[1]              << " "
-         << setw(8)  << setprecision(3) << _neu[2];
+         << setw(8)  << setprecision(3) << _neu[2]              << endl << endl;
     emit newMessage(QByteArray(strC.str().c_str()), true);
   }
Index: /trunk/BNC/bncrawfile.cpp
===================================================================
--- /trunk/BNC/bncrawfile.cpp	(revision 2529)
+++ /trunk/BNC/bncrawfile.cpp	(revision 2530)
@@ -109,18 +109,20 @@
   if (_inpFile) {
     QString     line = _inpFile->readLine();
-    QStringList lst  = line.split(' ');
-    
-    bncApp* app = (bncApp*) qApp;
-    delete app->_currentDateAndTimeGPS;
-    app->_currentDateAndTimeGPS = 
-      new QDateTime(QDateTime::fromString(lst.value(0), Qt::ISODate));
-
-    _staID  = lst.value(1).toAscii();
-    _format = lst.value(2).toAscii();
-    int nBytes = lst.value(3).toInt();
-
-    data = _inpFile->read(nBytes);
-
-    _inpFile->read(1); // read '\n' character
+    if (!line.isEmpty()) {
+      QStringList lst  = line.split(' ');
+      
+      bncApp* app = (bncApp*) qApp;
+      delete app->_currentDateAndTimeGPS;
+      app->_currentDateAndTimeGPS = 
+        new QDateTime(QDateTime::fromString(lst.value(0), Qt::ISODate));
+      
+      _staID  = lst.value(1).toAscii();
+      _format = lst.value(2).toAscii();
+      int nBytes = lst.value(3).toInt();
+      
+      data = _inpFile->read(nBytes);
+      
+      _inpFile->read(1); // read '\n' character
+    }
   }
 
Index: /trunk/BNC/bncutils.cpp
===================================================================
--- /trunk/BNC/bncutils.cpp	(revision 2529)
+++ /trunk/BNC/bncutils.cpp	(revision 2530)
@@ -116,8 +116,13 @@
 ////////////////////////////////////////////////////////////////////////////
 QDateTime currentDateAndTimeGPS() {
-  int    GPSWeek;
-  double GPSWeeks;
-  currentGPSWeeks(GPSWeek, GPSWeeks);
-  return dateAndTimeFromGPSweek(GPSWeek, GPSWeeks);
+  if ( ((bncApp*) qApp)->_currentDateAndTimeGPS ) {
+    return *(((bncApp*) qApp)->_currentDateAndTimeGPS);
+  }
+  else {
+    int    GPSWeek;
+    double GPSWeeks;
+    currentGPSWeeks(GPSWeek, GPSWeeks);
+    return dateAndTimeFromGPSweek(GPSWeek, GPSWeeks);
+  }
 }
 
