Write_to_win