Assignment 2 part 2: reads in files with strings split on spaces.