(system) write_file for saving selected attributes.