I'm a bit confused by the documentation.
Here it says:
But on the same page in the examples it says:If syncWithFile was set to true when creating the ES3File, or this parameter was not set, individual keys in the file in storage will be overwritten and any keys deleted from this ES3File will not be removed from the file in storage.
But according to the first quote the ES3File cannot be the same as the file in storage because deleted keys will not be removed from the file in storage. Where is the error?[...]
// Delete some key from the ES3File.
es3File.DeleteKey("myInt");
es3File.DeleteKey("myString");
// Sync the file so the file in storage is the same as our ES3File.
es3File.Sync();
Regards,
Gustav