]> git.donarmstrong.com Git - mothur.git/blobdiff - systemcommand.cpp
1.21.0
[mothur.git] / systemcommand.cpp
index 5ace75e3a2d152f27e6483aab2ad4a697f952c79..d0057e8b4e8c199f9113f54af6a46836ab6f58b4 100644 (file)
@@ -96,7 +96,7 @@ int SystemCommand::execute(){
                
                ifstream in;
                string filename = "./commandScreen.output";
-               m->openInputFile(filename, in);
+               m->openInputFile(filename, in, "no error");
                
                string output = "";
                while(char c = in.get()){
@@ -106,7 +106,7 @@ int SystemCommand::execute(){
                in.close();
                
                m->mothurOut(output); m->mothurOutEndLine();
-               remove(filename.c_str());
+               m->mothurRemove(filename);
                                
                return 0;               
        }