]> git.donarmstrong.com Git - mothur.git/blobdiff - getgroupcommand.cpp
rewrote metastats command in c++, added mothurRemove function to handle ~ error....
[mothur.git] / getgroupcommand.cpp
index 1190f49d41036c3d3034d8555544725014ee49f0..194e8e16b1e388bdb8d01ac372fbc884cbc92e43 100644 (file)
@@ -146,13 +146,13 @@ int GetgroupCommand::execute(){
                        in >> inputData;
                }
                
-               if (m->control_pressed) { outputTypes.clear(); in.close();  out.close(); remove(outputFile.c_str());   return 0; }
+               if (m->control_pressed) { outputTypes.clear(); in.close();  out.close(); m->mothurRemove(outputFile);   return 0; }
 
                if (in.eof() != true) { in >> nextLabel; }
                
                //read the rest of the groups info in
                while ((nextLabel == holdLabel) && (in.eof() != true)) {
-                       if (m->control_pressed) {  outputTypes.clear(); in.close();  out.close(); remove(outputFile.c_str());   return 0; }
+                       if (m->control_pressed) {  outputTypes.clear(); in.close();  out.close(); m->mothurRemove(outputFile);   return 0; }
                        
                        in >> groupN >> num;
                        count++;
@@ -172,7 +172,7 @@ int GetgroupCommand::execute(){
                in.close();
                out.close();
                
-               if (m->control_pressed) {  remove(outputFile.c_str());   return 0; }
+               if (m->control_pressed) {  m->mothurRemove(outputFile);   return 0; }
                
                m->mothurOutEndLine();
                m->mothurOut("Output File Name: "); m->mothurOutEndLine();