How can I prevent my plugin’s next version from updating one of the files?

Store the text in an option, not in a file. Two advantages:

  1. The option will not be deleted during the update.
  2. Your users can edit it even when their wp-config.php contains define( 'DISALLOW_FILE_EDIT',true );.

Never try to write in the plugin and theme directories.