X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=countseqscommand.cpp;h=575ffe844ed0a1134d52ecd0d6aa30531e2fc584;hp=411a814d73671ebb69b43a783e36e31d6263fe45;hb=ac03f1f6c27b5bfdf2cfb6d45c3667c3e0281f51;hpb=fe08eacea5a2d34cd4bd27e8451fd2872102a80a diff --git a/countseqscommand.cpp b/countseqscommand.cpp index 411a814..575ffe8 100644 --- a/countseqscommand.cpp +++ b/countseqscommand.cpp @@ -628,7 +628,7 @@ map CountSeqsCommand::processNameFile(string name) { } } in.close(); - out.close(); + if (rest != "") { vector pieces = m->splitWhiteSpace(rest); @@ -651,6 +651,7 @@ map CountSeqsCommand::processNameFile(string name) { } } + out.close(); return indexToNames; } @@ -704,7 +705,7 @@ map CountSeqsCommand::getGroupNames(string filename, set& n } } in.close(); - out.close(); + if (rest != "") { vector pieces = m->splitWhiteSpace(rest); @@ -726,6 +727,7 @@ map CountSeqsCommand::getGroupNames(string filename, set& n } } } + out.close(); for (it = groupIndex.begin(); it != groupIndex.end(); it++) { indexToGroups[it->second] = it->first; }