chose file write out method