Skip to content
Snippets Groups Projects
Commit edb3438b authored by Marina Bertolino's avatar Marina Bertolino
Browse files

ENH: remove eof()

parent 48056a4e
No related branches found
No related tags found
No related merge requests found
......@@ -279,9 +279,8 @@ void ClassKMeansBase::CreateOutMeansFile(FloatVectorImageType *image,
// get the end line with the centroids
std::string line, centroidLine;
while(!infile.eof())
while(std::getline(infile,line))
{
std::getline(infile,line);
if (!line.empty())
centroidLine = line;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment