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 {
}
-
/**************************************************************************************************/
inline void mothurOut(string message) {
}
+
+
/***********************************************************************/
inline void gobble(istream& f){
fileHandle.open(fileName.c_str());
if(!fileHandle) {
- cerr << "Error: Could not open " << fileName << endl;
+ mothurOut("Error: Could not open " + fileName); mothurOutEndLine();
return 1;
}
else {
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 {