Attempt to use BufferedReader

trying to figure out how to stop repeating code, test input file added.