Question

I need to take in an input file in DBF format (I believe it is made via Foxpro) and read the records sequentially for processing.

Is there any way to do this in Java without use of external libraries?

Thanks.

(I'm just avoiding use of external libraries as much as possible because I will still need to obtain approval for it)

Was it helpful?

Solution 2

The original DBF format is pretty simple. So if you only have to read .dbf files, it's not that hard, see Wikipedia. If you have read the header, you should be able to "jump" directly to the records.

There are plenty of resources on the web; for example on SO:

  • As for the header, have a look at this
  • As for reading the records, look here

So I would just give it a try to read it using java.io.RandomAccessFile

OTHER TIPS

Try JDBF: https://github.com/iryndin/jdbf

I am the project owner of JDBF.

If you find any bugs don't hesitate to send me bug reports, will fix it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top