- //open shared file
- m->openInputFile(sharedfile, in);
-
- //open output file
- outputFile = outputDir + m->getRootName(m->getSimpleName(sharedfile)) + "bootGroups";
- m->openOutputFile(outputFile, out);
-
- int num, inputData, count;
- count = 0;
- string holdLabel, nextLabel, groupN, label;
-
- //read in first row since you know there is at least 1 group.
- in >> label >> groupN >> num;
- holdLabel = label;
-
- //output first group
- m->mothurOut(groupN); m->mothurOutEndLine();
- out << groupN << '\t' << groupN << endl;
-
- //get rest of line
- for(int i=0;i<num;i++){
- in >> inputData;
+ for (int i = 0; i < lookup.size(); i++) {
+ m->mothurOut(lookup[i]->getGroup()); m->mothurOutEndLine();
+ delete lookup[i];