Your task is to open a file, read all words in the file, and find the longest word in the file. If there are multiple words with the same length, return the first of the maximum length words.