Read/Write xBASE (DBASE 3-5 /DBF) files [closed]

烈酒焚心 提交于 2019-12-18 03:43:26

问题


Is there any good library for reading / writing DBF files in java or any other language ?


回答1:


You might give this library a try:

http://dans-dbf-lib.sourceforge.net/

It is open source (GPL) and pure Java.




回答2:


Its easy to get to via OleDB provider, such as via .Net, Visual Foxpro would obviously be able to read it natively.




回答3:


A quick google for dbase and jdbc brought back a number of links for an xbase jdbc driver called StelsDBF. Can't say I've used it or know more than a quick google, but that would be my Java answer.

An alternative Java solution would be to set up an ODBC data source for dbase and then use the JdbcOdbc bridge




回答4:


I've used the JDBC driver from HXTT. It is type-4 (pure java) and worked well. My experience with the JdbcOdbc bridge for the same task was quite poor but that may have changed in newer releases. HXTT's driver is a commercial product.




回答5:


"any other language"? like in Python, maybe?

in Python I'm using this one: dbfpy. (not to be confused with pydbf.)
very usable indeed.



来源:https://stackoverflow.com/questions/2277523/read-write-xbase-dbase-3-5-dbf-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!