]> git.donarmstrong.com Git - mothur.git/blobdiff - listseqscommand.cpp
rewrote metastats command in c++, added mothurRemove function to handle ~ error....
[mothur.git] / listseqscommand.cpp
index 3fe8360e3241477b869c26f5b1892541e28d84a4..ef1515863dbca8b0f930d1b26f3c9f2936c7eec4 100644 (file)
@@ -223,13 +223,13 @@ int ListSeqsCommand::execute(){
                //output to .accnos file
                for (int i = 0; i < names.size(); i++) {
                        
-                       if (m->control_pressed) { outputTypes.clear(); out.close(); remove(outputFileName.c_str()); return 0; }
+                       if (m->control_pressed) { outputTypes.clear(); out.close(); m->mothurRemove(outputFileName); return 0; }
                        
                        out << names[i] << endl;
                }
                out.close();
                
-               if (m->control_pressed) { outputTypes.clear();  remove(outputFileName.c_str()); return 0; }
+               if (m->control_pressed) { outputTypes.clear();  m->mothurRemove(outputFileName); return 0; }
                
                m->setAccnosFile(outputFileName);