X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getgroupcommand.cpp;h=817331f8ce06a531c447896707951b2e6ffb7b9d;hb=8ab46c171b45ae3782d839539792d049017a361b;hp=b645517f938928c44eb5faa5871e4171c40fb800;hpb=74844a60d80c6dd06e3fb02ee9b928424f9019b0;p=mothur.git diff --git a/getgroupcommand.cpp b/getgroupcommand.cpp index b645517..817331f 100644 --- a/getgroupcommand.cpp +++ b/getgroupcommand.cpp @@ -102,10 +102,14 @@ int GetgroupCommand::execute(){ in >> inputData; } + if (m->control_pressed) { in.close(); out.close(); remove(outputFile.c_str()); 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) { in.close(); out.close(); remove(outputFile.c_str()); return 0; } + in >> groupN >> num; count++; @@ -124,6 +128,8 @@ int GetgroupCommand::execute(){ in.close(); out.close(); + if (m->control_pressed) { remove(outputFile.c_str()); return 0; } + m->mothurOutEndLine(); m->mothurOut("Output File Name: "); m->mothurOutEndLine(); m->mothurOut(outputFile); m->mothurOutEndLine();