]> git.donarmstrong.com Git - mothur.git/blobdiff - engine.cpp
added getline function to mothur and modified places where we use getline to use...
[mothur.git] / engine.cpp
index 42938d8a0bf157e0d31a837134d477bc65dca9c3..2215e081af76c8c2ccb3064aebe8d04dc6a94818 100644 (file)
@@ -86,14 +86,6 @@ BatchEngine::BatchEngine(string path, string batchFileName){
                openedBatch = openInputFile(batchFileName, inputBatchFile);
                globaldata->argv = path;
                                
-       
-       
-       //      char buffer = ' ';
-       //      ifstream header("introtext.txt");
-       //      while(!header.eof()){
-       //              cout << buffer;
-       //              buffer = header.get();
-       //      }
        }
        catch(exception& e) {
                errorOut(e, "BatchEngine", "BatchEngine");
@@ -127,7 +119,7 @@ bool BatchEngine::getInput(){
                while(quitCommandCalled == 0){
        
                        if (inputBatchFile.eof()) { input = "quit()"; }
-                       else { getline(inputBatchFile, input); }
+                       else { input = getline(inputBatchFile); }