A small C++ library for reading dbf files. It was designed for converting dbf files to txt and can be easily used for generating files in any format desired. Free for commercial use, open source under the ZLib License.
http://github.com/bcsanches/dbf2txt
You can use it as simple as:
dbfmanager input.dbf output.txt
This will output all data from input.dbf to output.txt.
In case you need only certain fields, use as:
dbfmanager input.dbf output.txt CODE NAME AGE
This will output only the fields CODE, NAME and AGE, ignoring any other fields in the file.
This is a simple dump tool to output DBF files to any format you need. In my case, I wrote it when I needed to migrate from a old system to a new format.