Menu

About EDT.

EDT is divided into EDT Basic (Just called EDT) and EDTA (EDT Advanced).
First, let's talk about how EDT works. EDT uses binary data to store named String values ("Tags"). The strings are stored using the encoding ISO-8859-1. To read exactly what integer values EDT uses, see the "EDT and EDTA Specifications" post.
To use EDT, first import EDT Basic:
import htmlguy.edt.basic;

After that, to load/create an EDT file, do the following:
EDTFile e = new EDTFile();

Or, to immediately load the EDT file, use:
EDTFile e = new EDTFile("MyFileName.edt");

To set an EDT value, use the modValue function.
e.modValue("Key","Value");
This sets the tag named 'Key' to the value 'Value'.

To get an EDT Value, use the getValue function:
e.getValue("Key");
This returns the previously set Value.

To load from an EDT-formatted file, use the readFrom function:
e.readFrom("MyFileName.edt");

To write to an EDT-formatted file, use the writeFile function:
e.writeFile("MyFileName.edt");

We will go over EDTA in our next post, EDTA Usage.

Posted by Nom 2014-01-01 Labels: edt

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.