This function reads a record from the disk (or ROM, if ROM support is being used). The record read is of type recordtype. Recordnum is used to index the recordnum-th record of that type. The record is read into dest (up to a maximum size of bufsize). The actual number of bytes read is returned in sizeread, and is equal to the record size unless the record has been truncated (in which case, sizeread will equal bufsize--comparing the returned size with the size returned by DB_RecordSize is the only way to detect truncation).
Syntax: int DB_ReadRecord(DBBLOCK *dblk, char recordtype,
RECORDNUM recordnum, void far *dest,
unsigned int bufsize,unsigned int *sizeread);
DB_NOTFOUND Recordnum is not in the database.
DB_READ Cannot read the disk.
DB_SEEK File is probably corrupt.
DB_DELETED Record is deleted.