Sample C code using CODEBASE for reading .DBF file requested please
Posted on 2008-10-30
I have an inherited MS C development environment which I usually use for reading Btrieve files and writing out to dBase (.dbf) files; this is done by a prewritten function extractToDbase which uses Codebase.
I now have a need to read in one of these DBF files, update a field, then write out a new dbf file.
Unfortunately there is no prewritten function supplied for reading dBase files, my "skills" are no where near good enough for me to write one, and I can't find any Codebase manuals anywhere (locally or on the net).
Ideally I'd like to read in the dbf file using Codebase, but an alternative would be to unload the file to text first; either needs to be coded in C.
I would be very grateful if someone could post some sample code. Once I've got the gist of it, I should have no problem amending it to what I need.