bool createTable(string filename);

Function createTable() creates a new table. You have to prepare the structure with prepareNewTable and addField.
Another function allows you to create and open the table right away after creation.

bool createAndOpenTable(string filename);


// if (dbf.prepareNewTable(1, 512, nil))
if (dbf.prepareNewTable(0))
{
    dbf.addField("ID", 'N', 10);
    dbf.addField("NAME", 'C', 20);
    dbf.addField("BIRTH", 'D', 8);
    dbf.addField("WEIGHT", 'N', 10, 2);

    // if (dbf.createAndOpenTable("testfile.dbf")) 
    if (dbf.createTable("testfile.dbf")) 
        Console.WriteLine("OK");
    else
        Console.WriteLine("Error");
}