Skip to content

Latest commit

History

7 Commits

Folders and files

NameName
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

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages