From 9862ec7dfdcf32c1a3ed43e5c15571dbf48d56c1 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Tue, 3 Mar 2015 15:07:37 +0100 Subject: [PATCH] Removing a blank line in the RINEX file --- src/algorithms/PVT/libs/rinex_printer.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/algorithms/PVT/libs/rinex_printer.cc b/src/algorithms/PVT/libs/rinex_printer.cc index 0f35d38c3..a060bcc24 100644 --- a/src/algorithms/PVT/libs/rinex_printer.cc +++ b/src/algorithms/PVT/libs/rinex_printer.cc @@ -583,7 +583,7 @@ void Rinex_Printer::update_nav_header(std::fstream& out, const Gps_Utc_Model& ut out.close(); out.open(navfilename, std::ios::out | std::ios::trunc); out.seekp(0); - for (int i = 0; i < (int) data.size(); i++) + for (int i = 0; i < (int) data.size() - 1; i++) { out << data[i] << std::endl; } @@ -604,8 +604,6 @@ void Rinex_Printer::update_nav_header(std::fstream& out, const Gps_Utc_Model& ut } - //myFile.close(); - //remove(tmpfilename.c_str()); out.seekp(pos); std::cout << "The RINEX Navigation file header has been updated with UTC and IONO info." << std::endl; }