Index: /trunk/BNC/bncapp.cpp
===================================================================
--- /trunk/BNC/bncapp.cpp	(revision 599)
+++ /trunk/BNC/bncapp.cpp	(revision 600)
@@ -178,7 +178,8 @@
     delete *ee;
     *ee = gpseph;
-    printGPSEph(gpseph);
+    printGPSEph(gpseph, true);
   }
   else {
+    printGPSEph(gpseph, false);
     delete gpseph;
   }
@@ -216,7 +217,8 @@
     delete *ee;
     *ee = glonasseph;
-    printGlonassEph(glonasseph);
+    printGlonassEph(glonasseph, true);
   }
   else {
+    printGlonassEph(glonasseph, false);
     delete glonasseph;
   }
@@ -453,5 +455,5 @@
 // Print One GPS Ephemeris
 ////////////////////////////////////////////////////////////////////////////
-void bncApp::printGPSEph(gpsephemeris* ep) {
+void bncApp::printGPSEph(gpsephemeris* ep, bool printFile) {
 
   QString line;
@@ -513,5 +515,5 @@
   // Output into file
   // ----------------
-  if (_ephStreamGPS) {
+  if (printFile && _ephStreamGPS) {
     *_ephStreamGPS << allLines;
     _ephStreamGPS->flush();
@@ -533,5 +535,5 @@
 // Print One Glonass Ephemeris
 ////////////////////////////////////////////////////////////////////////////
-void bncApp::printGlonassEph(glonassephemeris* ep) {
+void bncApp::printGlonassEph(glonassephemeris* ep, bool printFile) {
 
   QString line;
@@ -579,5 +581,5 @@
   // Output into file
   // ----------------
-  if (_ephStreamGlonass) {
+  if (printFile && _ephStreamGlonass) {
     *_ephStreamGlonass << allLines;
     _ephStreamGlonass->flush();
Index: /trunk/BNC/bncapp.h
===================================================================
--- /trunk/BNC/bncapp.h	(revision 599)
+++ /trunk/BNC/bncapp.h	(revision 600)
@@ -48,6 +48,6 @@
   private:
     void printEphHeader();
-    void printGPSEph(gpsephemeris* ep);
-    void printGlonassEph(glonassephemeris* ep);
+    void printGPSEph(gpsephemeris* ep, bool printFile);
+    void printGlonassEph(glonassephemeris* ep, bool printFile);
 
     QFile*            _logFile;
