private void GenRoutes(string inFilePAth) { using (var reader = new StreamReader(inFilePAth + "_GoodAddresses.csv")) using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture)) { var records = csv.GetRecords <TDayAddress>(); TDayAddress.GenerateRoutes(records, inFilePAth, new MsgOut(DebugOut)); } }
private static void RunOptions(Options opts) { using (var reader = new StreamReader(opts.inputFile)) using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture)) { var records = csv.GetRecords <TDayAddress>(); TDayAddress.GenerateRoutes(records, Path.GetDirectoryName(opts.inputFile), new MsgOut(DebugOut)); } Console.WriteLine($"Results written to {Path.GetDirectoryName(opts.inputFile) + "/Deliveries.txt"}"); }