X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothurout.cpp;h=9ec847c81152b3ee0b33742c0d369acb74a4f98a;hb=cdf9083dc32543cc640e72e9ca3aee0323cbad45;hp=de6da8c217a36a17368be48c21a7116d36a43108;hpb=d4cd876bd09bfa1bcb137261700eae79f9e41fc0;p=mothur.git diff --git a/mothurout.cpp b/mothurout.cpp index de6da8c..9ec847c 100644 --- a/mothurout.cpp +++ b/mothurout.cpp @@ -658,6 +658,7 @@ int MothurOut::openInputFile(string fileName, ifstream& fileHandle, string m){ fileHandle.open(completeFileName.c_str()); if(!fileHandle) { + mothurOut("[ERROR]: Could not open " + completeFileName); mothurOutEndLine(); return 1; }else { //check for blank file @@ -801,6 +802,7 @@ void MothurOut::appendFiles(string temp, string filename) { //open output file in append mode openOutputFileAppend(filename, output); int ableToOpen = openInputFile(temp, input, "no error"); + //int ableToOpen = openInputFile(temp, input); if (ableToOpen == 0) { //you opened it while(char c = input.get()){ @@ -1038,7 +1040,7 @@ vector MothurOut::divideFile(string filename, int& proc) { //sanity check filePos for (int i = 0; i < (filePos.size()-1); i++) { - if (filePos[(i+1)] <= filePos[i]) { cout << "erasing " << (i+1) << endl; filePos.erase(filePos.begin()+(i+1)); i--; } + if (filePos[(i+1)] <= filePos[i]) { filePos.erase(filePos.begin()+(i+1)); i--; } } proc = (filePos.size() - 1);