def load_text_data(textfile):
    """Read a text file containing lines of text.
    Args:
        textfile: string representing a path name to a file
    Returns:
        list of words
    """
    words = []
    with open(textfile, 'r') as lines:
        for line in lines:
            words.extend(line.split())

    return words