]> git.donarmstrong.com Git - mothur.git/blobdiff - groupmap.cpp
added checks for ^C to quit command instead of program
[mothur.git] / groupmap.cpp
index 8d0662f9c404cb05d4cfed74596a33284d5235d9..939cdb9040e67c62416f76cda30b86dbead73654 100644 (file)
@@ -30,6 +30,8 @@ int GroupMap::readMap() {
                        fileHandle >> seqName;                  //read from first column
                        fileHandle >> seqGroup;                 //read from second column
                        
+                       if (m->control_pressed) {  fileHandle.close();  return 1; }
+                       
                        setNamesOfGroups(seqGroup);
                        
                        it = groupmap.find(seqName);