X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=mothur.h;h=836e0660dae78b87fe71e20bc95f59506c81d5dd;hb=c5c3ba0fa9d18707c9c9ce692cff061b6f882e44;hp=e3e2ef415fd8f9f4ea5d45e8c0bcd192a06f01f7;hpb=e911fa88572a16ef40e0b51fb132ab6e02370797;p=mothur.git diff --git a/mothur.h b/mothur.h index e3e2ef4..836e066 100644 --- 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; }