Index: trunk/BNS/bns.cpp
===================================================================
--- trunk/BNS/bns.cpp	(revision 980)
+++ trunk/BNS/bns.cpp	(revision 981)
@@ -397,11 +397,17 @@
       }
     
-      if ( _outSocket && 
+      if ( (_outSocket || _outFile) && 
            (co.NumberOfGPSSat > 0 || co.NumberOfGLONASSSat > 0) ) {
         char obuffer[CLOCKORBIT_BUFFERSIZE];
         int len = MakeClockOrbit(&co, COTYPE_AUTO, 0, obuffer, sizeof(obuffer));
         if (len > 0) {
-          _outSocket->write(obuffer, len);
-          _outSocket->flush();
+          if (_outSocket) {
+            _outSocket->write(obuffer, len);
+            _outSocket->flush();
+          }
+          if (_outFile) {
+            _outFile->write(obuffer, len);
+            _outFile->flush();
+          }
         }
       }
Index: trunk/BNS/bnswindow.cpp
===================================================================
--- trunk/BNS/bnswindow.cpp	(revision 980)
+++ trunk/BNS/bnswindow.cpp	(revision 981)
@@ -142,6 +142,4 @@
   _clkPortLineEdit  = new QLineEdit(settings.value("clkPort").toString());
   _clkPortLineEdit->setWhatsThis(tr("BNS reads Clocks & Orbits referring to the IGS system (X,Y,Z, ECEF) in plain ASCII format from an IP address. Specify the IP port e.g. of a RTNet installation providing this information."));
-  _clkFileLineEdit    = new QLineEdit(settings.value("clkFile").toString());
-  _clkFileLineEdit->setWhatsThis(tr("Specify the full path to a file where incoming IGS Clocks & Orbits are saved. Beware that the size of this file can rapidly increase. Default is an empty option field meaning that incoming Clocks & Orbits corrections are not saved."));
   _clkPortLineEdit->setMaximumWidth(9*ww);
 
@@ -259,9 +257,6 @@
   layout_inp->addWidget(new QLabel("Server listening on Port"), 1, 1, 1, 3, Qt::AlignRight);
   layout_inp->addWidget(_clkPortLineEdit,              1, 4);
-  layout_inp->addWidget(new QLabel("Save Clocks & Orbits"), 2, 0, Qt::AlignLeft);
-  layout_inp->addWidget(new QLabel("(full path)"), 2, 1, Qt::AlignRight);
-  layout_inp->addWidget(_clkFileLineEdit,         2, 2);
-  layout_inp->addWidget(new QLabel("Read broadcast ephemeris and IGS clocks and orbits."), 3, 0, 1, 6, Qt::AlignLeft);
-  layout_inp->addWidget(new QLabel(""),                4, 0);
+  layout_inp->addWidget(new QLabel("Read broadcast ephemeris and IGS clocks and orbits."), 2, 0, 1, 6, Qt::AlignLeft);
+  layout_inp->addWidget(new QLabel(""),                3, 0);
 
   tab_inp->setLayout(layout_inp);
@@ -439,5 +434,4 @@
   settings.setValue("ephPort",    _ephPortLineEdit->text());
   settings.setValue("clkPort",    _clkPortLineEdit->text());
-  settings.setValue("clkFile",    _clkFileLineEdit->text());
   settings.setValue("outHost",    _outHostLineEdit->text());
   settings.setValue("outPort",    _outPortLineEdit->text());
Index: trunk/BNS/bnswindow.h
===================================================================
--- trunk/BNS/bnswindow.h	(revision 980)
+++ trunk/BNS/bnswindow.h	(revision 981)
@@ -61,5 +61,4 @@
   QLineEdit* _ephPortLineEdit;
   QLineEdit* _clkPortLineEdit;
-  QLineEdit* _clkFileLineEdit;
   QLineEdit* _logFileLineEdit;
   QLineEdit* _outHostLineEdit;
