static void BulkTest() { UserInput userInput = new UserInput(); FileSeperator fileSeperator = new FileSeperator(); fileSeperator.UserInput = userInput; userInput.Seperator = ","; userInput.NumberOfFields = 3; userInput.FileName = @"C:\Work\Runbeck\RowSeperator\Data\sample.txt"; fileSeperator.StartProcess(); userInput.FileName = @"C:\Work\Runbeck\RowSeperator\Data\empty.txt"; fileSeperator.StartProcess(); userInput.FileName = @"C:\Work\Runbeck\RowSeperator\Data\exactNumberOfFields.txt"; fileSeperator.StartProcess(); userInput.FileName = @"C:\Work\Runbeck\RowSeperator\Data\onlyHeader.txt"; fileSeperator.StartProcess(); userInput.Seperator = "\t"; userInput.FileName = @"C:\Work\Runbeck\RowSeperator\Data\tabSample.txt"; fileSeperator.StartProcess(); }
static void init() { UserInput userInput = new UserInput(); FileSeperator fileSeperator = new FileSeperator(); do { userInput.Init(); fileSeperator.UserInput = userInput; fileSeperator.StartProcess(); } while (true); //Repeat until user inputs 'quit' or exits the application }