def getTextFile(filename):
    """
    Returns a list where each element contains text from each line 
    of given text file.
    """
    return [line.rstrip() for line in open(filename,'r').readlines()]