]> git.donarmstrong.com Git - mothur.git/blobdiff - mergefilecommand.cpp
worked on hcluster. made .single command run using a sharedfile. and various other...
[mothur.git] / mergefilecommand.cpp
index 44cb03d64a3593aed5b408455be46e0b20da4a4f..fcf63895b960fa8293df03dcff7c1e5bce28c914 100644 (file)
@@ -75,9 +75,10 @@ int MergeFileCommand::execute(){
                ofstream outputFile;
                openOutputFile(outputFileName, outputFile);
                
-               ifstream inputFile;
                char c;
                for(int i=0;i<numInputFiles;i++){
+                       ifstream inputFile; //declaration must be inside for loop of windows throws an error
+                       
                        openInputFile(fileNames[i], inputFile);
                        
                        while(!inputFile.eof()){        c = inputFile.get(); outputFile << c;   }