]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.h
added check for blank files in openInputFile, add check for groupfiles that contain...
[mothur.git] / mothur.h
index e3e2ef415fd8f9f4ea5d45e8c0bcd192a06f01f7..836e0660dae78b87fe71e20bc95f59506c81d5dd 100644 (file)
--- a/mothur.h
+++ b/mothur.h
@@ -425,6 +425,10 @@ inline int openInputFile(string fileName, ifstream& fileHandle){
                return 1;
        }
        else {
+               //check for blank file
+               gobble(fileHandle);
+               if (fileHandle.eof()) { mothurOut(fileName + " is blank. Please correct."); mothurOutEndLine();  return 1;  }
+               
                return 0;
        }