X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=listseqscommand.cpp;h=ef1515863dbca8b0f930d1b26f3c9f2936c7eec4;hb=19fcbbdba99658f5eca244803280f9ee7f9f6607;hp=3fe8360e3241477b869c26f5b1892541e28d84a4;hpb=7bf9a81bba76538ecaf351ae208de3da4bf1b6dd;p=mothur.git diff --git a/listseqscommand.cpp b/listseqscommand.cpp index 3fe8360..ef15158 100644 --- a/listseqscommand.cpp +++ b/listseqscommand.cpp @@ -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);