-
Notifications
You must be signed in to change notification settings - Fork 2
jwhear/xbase
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This project implements an xBase file format reader aimed at the dBase III format in the D programming language. A description of the format is here: http://www.clicketyclick.dk/databases/xbase/format/index.html The ability to read .dbf files remains useful as it remains a popular compatibility format and is used as part of other formats, such as Shapefiles. Reading files: ---------------------------------- import std.stdio : writeln, writefln; import std.stream; import xbase; void main(string[] args) { // Read each file passed in foreach (filepath; args[1 .. $]) { auto db = xBaseDatabase.read(new File(filepath)); writefln("%s contains %s records.", filepath, db.header.numRecords); writeln("Fields:"); foreach (col; db.columns) writefln("\t%s (%s:%s)", col.name, col.type, col.length); } } ----------------------------------
About
A library for xBase (or dbf) IO written in D.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published