Index: /trunk/BNC/rinex/rnxobsfile.cpp
===================================================================
--- /trunk/BNC/rinex/rnxobsfile.cpp	(revision 4115)
+++ /trunk/BNC/rinex/rnxobsfile.cpp	(revision 4116)
@@ -649,10 +649,15 @@
   bncApp* app = (bncApp*) qApp;
 
-  QString runBy = app->userName();
+  QString     runBy = app->userName();
+  QStringList comments;
+
   QMapIterator<QString, QString> it(txtMap);
   while (it.hasNext()) {
     it.next();
-    if (it.key() == "RUN BY") {
+    if      (it.key() == "RUN BY") {
       runBy = it.value();
+    }
+    else if (it.key() == "COMMENT") {
+      comments = it.value().split(QChar('\n'), QString::SkipEmptyParts);
     }
   }
@@ -669,4 +674,9 @@
     .leftJustified(60)
            << "PGM / RUN BY / DATE\n";
+
+  QStringListIterator itCmnt(comments);
+  while (itCmnt.hasNext()) {
+    *_stream << itCmnt.next().leftJustified(60) << "COMMENT\n";
+  }
 
   *_stream << QString("%1")
