]> git.donarmstrong.com Git - mothur.git/blobdiff - mothurout.cpp
added tree reader class to handle reading trees. Reworked the tree map to tree class...
[mothur.git] / mothurout.cpp
index d5f1534f7535052c75888b04d28211fd522a0410..ee809fafc6e39f6c5cc02d78b513d82704864aa8 100644 (file)
@@ -1014,7 +1014,8 @@ int MothurOut::appendFiles(string temp, string filename) {
                
                int numLines = 0;
                if (ableToOpen == 0) { //you opened it
-                       while(char c = input.get()){
+                       while(!input.eof()){
+                char c = input.get();
                                if(input.eof())         {       break;                  }
                                else                            {       output << c;    if (c == '\n') {numLines++;} }
                        }