+ if (usedRedirect) {
+ ifstream in;
+ string filename = "./commandScreen.output";
+ m->openInputFile(filename, in, "no error");
+
+ string output = "";
+ while(char c = in.get()){
+ if(in.eof()) { break; }
+ else { output += c; }
+ }
+ in.close();
+
+ m->mothurOut(output); m->mothurOutEndLine();
+ m->mothurRemove(filename);