private void AskForMergeFiles() { _log.LogInformation("Please input path for the CSV files you wish to merge. One at a time."); do { _log.LogInformation("Please input Filepath."); var inputFile = Console.ReadLine(); var fileExists = _fileValidator.ValidateFilePath(inputFile); if (!fileExists) { _log.LogInformation("Directory does not exist."); _log.LogInformation("Try another path\n"); return; } //make the new Dataset object and add it to the inputsets list on the configurationstate object. var ds = _inputDatasetFactory.MakeInputDataset(); ds.FilePath = inputFile; _jobState.AddInputset(ds); _log.LogInformation("Would you like to add another file? [Y,N]"); var yesNo = Console.ReadLine().ToUpper(); if (yesNo != "Y" && yesNo != "N") { _log.LogInformation("Please input a Y or N"); } else if (yesNo != "Y") { break; } } while (true); }