def integers_from_file(filename):
    """ Return a list of the integers in FILENAME, assuming one per line.  """
    integers = []
    with open(filename,"r") as f:
        for line in f:
            integers.append(int(line))

    return integers