in reply to using Format

Open NAME first. Use write().