Commit 4e3f0a36 authored by Naumann, Andreas's avatar Naumann, Andreas

long initfile strings

parent c6dd3036
......@@ -86,8 +86,10 @@ namespace AMDiS {
void Initfile::read(istream& in)
{
const unsigned line_length = 512;
char swap[line_length];
in.getline(swap, line_length);
//char swap[line_length];
std::string swap;
std::getline(in, swap);
//in.getline(swap, line_length);
while (in.good() || in.gcount() > 0) {
std::string whitespaces = " \t\r\f\n";
std::string delimiter = "\r\n";
......@@ -147,7 +149,8 @@ namespace AMDiS {
read(fn, forceRead);
}
in.getline(swap, line_length);
//in.getline(swap, line_length);
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