def file_to_list(filename):
    """
    Read in a one-column txt file to a list
    :param filename:
    :return: A list where each line is an element
    """
    with open(filename, 'r') as fin:
        alist = [line.strip() for line in fin]
    return alist