+ if (!fileHandle.eof()) { //check for blank file - this could occur if all dists in group are above cutoff
map<string, string> temp;
temp[tempDistFile] = tempNameFile;
dists.push_back(temp);
map<string, string> temp;
temp[tempDistFile] = tempNameFile;
dists.push_back(temp);
+ }else {
+ ifstream in;
+ openInputFile(tempNameFile, in);
+
+ while(!in.eof()) {
+ in >> name >> nameList; gobble(in);
+ wroteExtra = true;
+ remainingNames << name << '\t' << nameList << endl;
+ }
+ in.close();
+ remove(tempNameFile.c_str());
}
}
fileHandle.close();
}
}
}
fileHandle.close();
}
+ remainingNames.close();
+ if (!wroteExtra) {
+ remove(singleton.c_str());
+ singleton = "none";
+ }
+
if (m->control_pressed) { for (int i = 0; i < dists.size(); i++) { remove((dists[i].begin()->first).c_str()); remove((dists[i].begin()->second).c_str()); } dists.clear(); }
return 0;
if (m->control_pressed) { for (int i = 0; i < dists.size(); i++) { remove((dists[i].begin()->first).c_str()); remove((dists[i].begin()->second).c_str()); } dists.clear(); }