if (globaldata->gGroupmap == NULL) { groupmap = new GroupMap(); }
- int num, inputData, pos, count;
+ int num, inputData, count;
count = 0;
string holdLabel, nextLabel, groupN;
individual newguy;
}
- //save position in file in case next line is a new label.
- pos = f.tellg();
-
if (f.eof() != true) { f >> nextLabel; }
//read the rest of the groups info in
lookup[count]->push_back(inputData, i, groupN); //abundance, bin, group
}
- //save position in file in case next line is a new label.
- pos = f.tellg();
-
+
if (f.eof() != true) { f >> nextLabel; }
}
//put file pointer back since you are now at a new distance label
- f.seekg(pos, ios::beg);
+ for (int i = 0; i < nextLabel.length(); i++) { f.unget(); }
if (globaldata->gGroupmap == NULL) { globaldata->gGroupmap = groupmap; }
i--;
}
}
-
+
+ delete util;
+
return lookup;
}
catch(exception& e) {