The function appendRecord() adds a new record to the end of file.
If you pass "true", the record will be empty.
If you pass "false", the new record will contain information from internal memory.
{
// copy record
readRecord(dbf, 10);
appendRecord(dbf, FALSE);
// modify some values
setField(dbf, 0, "something", 12.34);
appendRecord(dbf, FALSE);
// add empty record
appendRecord(dbf, TRUE);
// your code
}