//bool errorFree;
//ErrorCheck* errorCheckor = new ErrorCheck();
- cout << "mothur v.1.3.0" << endl;
- cout << "Last updated: 5/29/2009" << endl << endl;
+ cout << "mothur v.1.4.0" << endl;
+ cout << "Last updated: 6/21/2009" << endl << endl;
cout << "by" << endl;
cout << "Patrick D. Schloss" << endl << endl;
cout << "Department of Microbiology" << endl;
int quitCommandCalled = 0;
while(quitCommandCalled == 0){
-
+
if (inputBatchFile.eof()) { input = "quit()"; }
else { getline(inputBatchFile, input); }
}
gobble(inputBatchFile);
}
+
+ inputBatchFile.close();
return 1;
}
catch(exception& e) {
commandString = commandString.substr(commandString.find_first_of(';')+1, commandString.length());
}else { commandString = ""; } //you have reached the last command.
- //get rid of any extra spaces in between commands
- //string space = " ";
-
- //while(commandString.at(0) == ' ')
- //commandString = commandString.substr(1, commandString.length());
-
+ //get rid of spaces in between commands if any
+ if (commandString.length() > 0) {
+ while (commandString[0] == ' ') {
+ commandString = commandString.substr(1,commandString.length());
+ if (commandString.length() == 0) { break; }
+ }
+ }
+
return nextcommand;
}
catch(exception& e) {