def read_as_list(filename):
    """Read the file at filename and store its contents into a list."""
    with open(filename) as f:
        result = [line.rstrip() for line in f.readlines()]
        f.close()
        return result