[greenstone-devel] Using GDBM package

From VoHa.Quang@ait.ac.th
DateFri, 17 Feb 2006 10:11:46 +0700
Subject [greenstone-devel] Using GDBM package
Do you have documents or any examples about using the gdbm package? I don?t
understand the "key" and "value" concepts that are used in the gdbm source.

My code:
String dbFile = "test.ldb";
try {
GdbmFile gdbm = new GdbmFile(dbFile, GdbmFile.READER);
Enumeration element = gdbm.keys();
while (element.hasMoreElements()) {
Object o = element.nextElement();
} catch (Exception e) {System.out.println(e.toString());}

and result is:

if can, pls show me where i can get examples or user-guide document about the
gdbm package.



This mail sent through AIT WebMail : http://www.ait.ac.th/