Commit 557e4746 authored by Naumann, Andreas's avatar Naumann, Andreas
Browse files

no need for empty line anymore

parent 99219a6a
...@@ -88,7 +88,7 @@ namespace AMDiS { ...@@ -88,7 +88,7 @@ namespace AMDiS {
//const unsigned line_length = 512; //const unsigned line_length = 512;
std::string swap; std::string swap;
std::getline(in, swap); std::getline(in, swap);
while (in.good() || in.gcount() > 0) { while (in.good() || swap.size() > 0) {
std::string whitespaces = " \t\r\f\n"; std::string whitespaces = " \t\r\f\n";
std::string delimiter = "\r\n"; std::string delimiter = "\r\n";
std::string sw(swap); std::string sw(swap);
...@@ -147,6 +147,7 @@ namespace AMDiS { ...@@ -147,6 +147,7 @@ namespace AMDiS {
read(fn, forceRead); read(fn, forceRead);
} }
swap.clear();
getline(in, swap); getline(in, swap);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment