def get_the_written_file_list(writefile_cursor):
    """Return the written files (W)."""
    written_files_query = '''
            SELECT process, name, mode
            FROM opened_files
            WHERE mode == 2
            '''
    writefile_cursor.execute(written_files_query)
    return writefile_cursor.fetchall()