]> git.donarmstrong.com Git - mothur.git/blobdiff - mergefilecommand.cpp
working on chimeras
[mothur.git] / mergefilecommand.cpp
index d5973394e5a097e879bf1526689d137266a417c1..0a8c0d8cda62808664a83f46c44cebb770e14f4a 100644 (file)
@@ -96,7 +96,11 @@ int MergeFileCommand::execute(){
                        
                        openInputFile(fileNames[i], inputFile);
                        
-                       while(!inputFile.eof()){        c = inputFile.get(); outputFile << c;   }
+                       while(!inputFile.eof()){        
+                               c = inputFile.get(); 
+                               //-1 is eof char
+                               if (int(c) != -1) { outputFile << c; }   
+                       }
                        
                        inputFile.close();
                }