Upgrade new version on store

Hi,

I have just published my first game on the Google Store and App store. Now I want to publish new version to the stores but here is the thing: There is local parameter file that contain information like : Score, Level, Collected Items etc and during the upgrade for the new version I don’t want that this file will be overwrite (or deleted).  
Actually I want that when upgrading the game only the code will be upgraded (and untouched the parameter file) - How can I achieve this one? (Android and Apple stores).

A general question - When the upgrade take place does the upgrade delete what you have on your Smartphone and put a whole fresh version (or do some kind of partial upgrade ) ?

Thanks

Yuval

If your local file is stored in the system.documentsDirectory it will not be touched by the upgrade process.

If your local file is stored in the system.documentsDirectory it will not be touched by the upgrade process.