]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.h
fixed bug in bootstrap command that was caused by globaldata's breakup, and made...
[mothur.git] / mothur.h
index 20d3b4b64725d0428248b47b22a3146a0a3a52c9..4d22e98e2a2bb3eac4dcbbe98b81694b58a00bcb 100644 (file)
--- a/mothur.h
+++ b/mothur.h
@@ -153,14 +153,13 @@ string toString(const T&x, int i){
        
     return output.str();
 }
-
 /***********************************************************************/
 
 inline int openOutputFileAppend(string fileName, ofstream& fileHandle){
        
        fileHandle.open(fileName.c_str(), ios::app);
        if(!fileHandle) {
-               cerr << "Error: Could not open " << fileName << endl;
+               cout << "Error: Could not open " <<  fileName << endl; 
                return 1;
        }
        else {
@@ -169,7 +168,6 @@ inline int openOutputFileAppend(string fileName, ofstream& fileHandle){
 
 }
 
-
 /**************************************************************************************************/
 
 inline void mothurOut(string message) {
@@ -239,6 +237,8 @@ inline void errorOut(exception& e, string object, string function) {
 }
 
 
+
+
 /***********************************************************************/
 
 inline void gobble(istream& f){
@@ -394,7 +394,7 @@ inline int openInputFile(string fileName, ifstream& fileHandle){
 
        fileHandle.open(fileName.c_str());
        if(!fileHandle) {
-               cerr << "Error: Could not open " << fileName << endl;
+               mothurOut("Error: Could not open " + fileName);  mothurOutEndLine();
                return 1;
        }
        else {
@@ -409,7 +409,7 @@ inline int openOutputFile(string fileName, ofstream& fileHandle){
        
        fileHandle.open(fileName.c_str(), ios::trunc);
        if(!fileHandle) {
-               cerr << "Error: Could not open " << fileName << endl;
+               mothurOut("Error: Could not open " + fileName);  mothurOutEndLine();
                return 1;
        }
        else {