string generateString()/enmlFile

Generates an enml declaration string that can be saved for later use.

enmlFile f;

enmlEntity entity;
entity.add("class", "rogue");
entity.add("level", "85");
entity.add("name", "Nathan");
f.addEntity("partyMember0", entity);

string str = f.generateString();
SaveStringToFile(GetExternalStorageDirectory() + "myFile.txt", str);

Output:

partyMember0
{
    class = rogue;
    level = 85;
    name = Nathan;
}