]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.h
added distance command and filterseqs
[mothur.git] / mothur.h
index e4a9bfc69e23ee143fab64726e4631c0cd95580c..2c9595ebe53c4055179f2297372bb1e691fff8ab 100644 (file)
--- a/mothur.h
+++ b/mothur.h
@@ -273,6 +273,21 @@ inline int openOutputFile(string fileName, ofstream& fileHandle){
        }
 
 }
+/***********************************************************************/
+
+inline int openOutputFileAppend(string fileName, ofstream& fileHandle){
+       
+       fileHandle.open(fileName.c_str(), ios::app);
+       if(!fileHandle) {
+               cerr << "Error: Could not open " << fileName << endl;
+               return 1;
+       }
+       else {
+               return 0;
+       }
+
+}
+
 
 /***********************************************************************/