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, ...@@ -279,9 +279,8 @@ void ClassKMeansBase::CreateOutMeansFile(FloatVectorImageType *image,
// get the end line with the centroids // get the end line with the centroids
std::string line, centroidLine; std::string line, centroidLine;
while(!infile.eof()) while(std::getline(infile,line))
{ {
std::getline(infile,line);
if (!line.empty()) if (!line.empty())
centroidLine = line; 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