A simple function WriteResults was added in the Scanner class to take a string of the results generated from BuildResults and add a newline character and write it to the file. All tests pass.