Reading in a word from the file and deciding which printing thread to activate.