#endif
-typedef unsigned long long ull;
+typedef unsigned long ull;
struct IntNode {
int lvalue;
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) {
mothurOut("Error: ");
mothurOut(toString(e.what()));
- mothurOut(" has occurred in the " + object + " class function " + function + "Please contact Pat Schloss at pschloss@microbio.umass.edu, and be sure to include the mothur.logFile with your inquiry.");
+ mothurOut(" has occurred in the " + object + " class function " + function + ". Please contact Pat Schloss at pschloss@microbio.umass.edu, and be sure to include the mothur.logFile with your inquiry.");
mothurOutEndLine();
}
+
+
/***********************************************************************/
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 {