List all the keys of the of the data base. Just entering the name of the object has the same behaviour as calling the puts method.
Read entries from the named file. The lines in the file are added to the entries that are already in the given object. Entries with the same key are overwritten. The old entry is removed and the new entry is added. (This does most likely change the sequence of entries, which means that the first and next methods will return their results in a different order.
Expects one argument, the name of the file into which it should write the (human readable) entries of the given object.
Expects a string (the key of the entry) and a second string (the value for this key). These form the entry that will be added to the database. Already existing entries with the same key are overwritten. The old entry is removed and the new entry is added. (This does most likely change the sequence of entries, which means that the first and next methods will return their results in a different order.
Expects the name of a key, which will be removed from the database.
Expects the name of a key, whose value will be returned. If you are using a list of two element lists, you can do makeArray arr [dbase get $key] which will give you an array where arr(variable) returns the second element of the two-elment list whose first element is variable.
first returns the first key of the database, and next returns the next key. So you can write
a loop over all entries like this:
for { set x [dbase first] } { [string length $x] } { set x [dbase next] } { ... }