]> git.donarmstrong.com Git - mothur.git/blobdiff - countseqscommand.cpp
added binary file operations to mothurout class. added comment to sequence class...
[mothur.git] / countseqscommand.cpp
index 411a814d73671ebb69b43a783e36e31d6263fe45..575ffe844ed0a1134d52ecd0d6aa30531e2fc584 100644 (file)
@@ -628,7 +628,7 @@ map<int, string> CountSeqsCommand::processNameFile(string name) {
             }
                }
                in.close();
-        out.close();
+       
                
         if (rest != "") {
             vector<string> pieces = m->splitWhiteSpace(rest);
@@ -651,6 +651,7 @@ map<int, string> CountSeqsCommand::processNameFile(string name) {
             }
 
         }
+        out.close();
         
         return indexToNames;
     }
@@ -704,7 +705,7 @@ map<int, string> CountSeqsCommand::getGroupNames(string filename, set<string>& n
             }
                }
                in.close();
-        out.close();
+        
         
         if (rest != "") {
             vector<string> pieces = m->splitWhiteSpace(rest);
@@ -726,6 +727,7 @@ map<int, string> CountSeqsCommand::getGroupNames(string filename, set<string>& n
                 }
             }
         }
+        out.close();
                
         for (it = groupIndex.begin(); it != groupIndex.end(); it++) {  indexToGroups[it->second] = it->first;  }