def read_txt(wordpressfile):
    """
    Reads a text files line-by-line into a list
    :param wordpressfile: a text file
    :return: a list containing the textfile as a list of lines
    """
    textlines = []

    with open (wordpressfile, 'r') as f:
        for line in f:
            textlines.append(line)
    f.close()


    return textlines