def read_all_words_from_file(source_file):
    """
    Function for read all words from source file.

    :param source_file: str
        File with words.

    :return:
        List of words.
    """
    if not isinstance(source_file, str):
        raise TypeError

    with open(source_file, 'rb') as f_in:
        words = [word.decode().strip() for word in f_in]

    return words