ES3.Save

public static void Save<T>(string key, object value, string filePath, ES3Settings settings)

Description

Saves the value to a file with the given key.

If the file already exists, the key will be added to the file.

If the key already exists in the file, the key will be overwritten in the file.

Parameters

T The type of the data we wish to save. Can be an inherited type.

key

The unique key we want to use to identity the data we are saving.

value

The value we want to save.

filePath

[Optional] The relative or absolute path of the file we want to store our value to.

settings

[Optional] The settings we want to use to override the default settings.

Examples

C#

JS