]> git.donarmstrong.com Git - mothur.git/blobdiff - deuniqueseqscommand.cpp
rewrote metastats command in c++, added mothurRemove function to handle ~ error....
[mothur.git] / deuniqueseqscommand.cpp
index 2ba6f3d2363d86cc49108e2cb3db71fddd1ae879..7481416f649ddad983877ab02cac08e5668316d1 100644 (file)
@@ -155,14 +155,14 @@ int DeUniqueSeqsCommand::execute() {
                m->openOutputFile(outFastaFile, out);
                
                readNamesFile();
-               if (m->control_pressed) {  out.close(); outputTypes.clear(); remove(outFastaFile.c_str()); return 0; }
+               if (m->control_pressed) {  out.close(); outputTypes.clear(); m->mothurRemove(outFastaFile); return 0; }
                
                ifstream in;
                m->openInputFile(fastaFile, in);
                
                while (!in.eof()) {
                
-                       if (m->control_pressed) { in.close(); out.close(); outputTypes.clear(); remove(outFastaFile.c_str()); return 0; }
+                       if (m->control_pressed) { in.close(); out.close(); outputTypes.clear(); m->mothurRemove(outFastaFile); return 0; }
                        
                        Sequence seq(in); m->gobble(in);
                        
@@ -196,7 +196,7 @@ int DeUniqueSeqsCommand::execute() {
                        }
                }
                                
-               if (m->control_pressed) { outputTypes.clear(); remove(outFastaFile.c_str()); return 0; }
+               if (m->control_pressed) { outputTypes.clear(); m->mothurRemove(outFastaFile); return 0; }
                
                m->mothurOutEndLine();
                m->mothurOut("Output File Names: "); m->mothurOutEndLine();