Use File.readlines instead of File#readlines.

Opening and closing files no longer necessary.
Use paths for Dictionaries instead of names.