Saving to a file.. how to?

Discussion and help for Easy Save 3
Post Reply
Posts: 4
Joined: Wed May 12, 2021 1:29 pm

Saving to a file.. how to?

Post by neo42 »

Forgive its a noob question, but I am trying to save a string to a file on my persistentDataPath, but its not happening.. Maybe I have some codes wrong that I am not able to figure out..


ES3Settings settings = new ES3Settings();

// Enable encryption and set an encryption password.
settings.encryptionType = ES3.EncryptionType.AES;
settings.encryptionPassword = "jjj";

var file = new ES3File(Application.persistentDataPath + "/userdata.txt", settings);
file.Save<string>("id", "myname");


User avatar
Moodkie Staff
Posts: 3526
Joined: Wed Nov 07, 2012 10:32 pm

Re: Saving to a file.. how to?

Post by Joel »

Hi there,

You appear to be using a deprecated API which is no longer supported. You should use ES3.Save instead. Please see the Getting Started guide for more information:

All the best,
Joel @ Moodkie Interactive
Buy Easy Save | Contact | Guides | Docs | Getting started

Post Reply