How to create a DBF file from scratch in C#?

前端 未结 3 578
悲哀的现实
悲哀的现实 2020-12-16 01:53

I am trying to write a DBF file from scratch in my program. I want to create it, add some columns, and then add data to the columns X amount of times. My program will not ne

3条回答
  •  爱一瞬间的悲伤
    2020-12-16 02:21

    If you want to completely eliminate external dependencies, you will have to resort to creating the file manually. And in order to do that, you'll need to spend some quality time with the whitepaper describing the file format's specifications to understand the fields you need to implement and what they should contain. You can find that online here: http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf

    Of course, this isn't really an undertaking for the faint of heart. Make sure that you understand the work that is entailed here before embarking on the journey.

提交回复
热议问题