def read_file(filename):
    """Read the given file and return a list of lines of text read from it."""
    with open(filename, "r") as file:
        lines_list = file.readlines()
    return lines_list