Remove the ability to read the dictionary from stdin.
Switch to more idiomatic C++ I/O error handling.
Factor out file read I/O error handling into its own function.