def file_to_list(filename):
    """
    Read lines of text file to a list.

    @param filename: path to file
    @type filename: string
    @return list of lines
    """
    with open(filename) as fil:
        meat = fil.readlines()
        return [i.strip() for i in meat]