Unanswered: Playing with dbf files, headers and c++
I was wondering, does anyone know of any web-sites where they, in some detail, discuss the opening and editing of a dbf file, preferably in c++, but any other language is fine? I am trying to open and read a dbf file (oddly enough) and am having no end of difficulty in even understanding the file format.
ie, there are three structures, the table file header (ok, the main header of the file, little difficulty there), the Table Field Descriptor (I take it this is the section where columns are described), the field descriptor array (sorry? What is this used for??) and the database records (I take it, the actual data of the file!). And ideas if this breakdown is correct?
Finally, when I check my version number, using c++, and this snippet of code
It's not only version numbers. It also indicates which driver is used to create the DBF. Different drivers, like FlexFile, Comix, Foxpro,etc., uses different kind of memo file formats and therefor use thier own descriptor as the first byte. That should prevent for instance dBase to try to open and alter memo fields in a DBF created with FlexFile or Foxpro as dBase don't understand the format of the those Memo files.
Originally posted by AIyer
Yeah, it is the docs I have - however, it does not explain the odd numbered version I am getting!