}\r
}\r
/*********************************************************************************************/\r
+void MothurOut::setDefaultPath(string pathname) {\r
+ try {\r
+ \r
+ //add / to name if needed\r
+ string lastChar = pathname.substr(pathname.length()-1);\r
+ #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)\r
+ if (lastChar != "/") { pathname += "/"; }\r
+ #else\r
+ if (lastChar != "\\") { pathname += "\\"; } \r
+ #endif\r
+ \r
+ defaultPath = pathname;\r
+ \r
+ }\r
+ catch(exception& e) {\r
+ errorOut(e, "MothurOut", "setDefaultPath");\r
+ exit(1);\r
+ }\r
+}\r
+/*********************************************************************************************/\r
void MothurOut::closeLog() {\r
try {\r
\r