]> git.donarmstrong.com Git - mothur.git/blobdiff - chimerabellerophoncommand.cpp
testing 1.14.0
[mothur.git] / chimerabellerophoncommand.cpp
index 6d0a116ac4d0d5d1bb2b8cf97f1ea5a1b5126fef..d3c8ea562ea314a6056409671defb41d15f3e834 100644 (file)
@@ -114,7 +114,9 @@ ChimeraBellerophonCommand::ChimeraBellerophonCommand(string option)  {
                                                if (m->getDefaultPath() != "") { //default path is set
                                                        string tryPath = m->getDefaultPath() + m->getSimpleName(fastaFileNames[i]);
                                                        m->mothurOut("Unable to open " + fastaFileNames[i] + ". Trying default " + tryPath); m->mothurOutEndLine();
-                                                       ableToOpen = m->openInputFile(tryPath, in, "noerror");
+                                                       ifstream in2;
+                                                       ableToOpen = m->openInputFile(tryPath, in2, "noerror");
+                                                       in2.close();
                                                        fastaFileNames[i] = tryPath;
                                                }
                                        }
@@ -124,7 +126,9 @@ ChimeraBellerophonCommand::ChimeraBellerophonCommand(string option)  {
                                                if (m->getOutputDir() != "") { //default path is set
                                                        string tryPath = m->getOutputDir() + m->getSimpleName(fastaFileNames[i]);
                                                        m->mothurOut("Unable to open " + fastaFileNames[i] + ". Trying output directory " + tryPath); m->mothurOutEndLine();
-                                                       ableToOpen = m->openInputFile(tryPath, in, "noerror");
+                                                       ifstream in2;
+                                                       ableToOpen = m->openInputFile(tryPath, in2, "noerror");
+                                                       in2.close();
                                                        fastaFileNames[i] = tryPath;
                                                }
                                        }