http://www.usf.uos.de/~fkoorman/software/dbftools.en.html
  »Deutsch
InstituteStudies
People
Projekte

Search


Software

developed (with support) by Frank Koormann

dBase Tools

The tasks of the two tools txt2dbf and dbf2txt are the conversion of ASCII tables into dbase files and vice versa.

txt2dbf

Conversion of ASCII tables into dbase files. The current version 1.0.2 (9. February 1998) handles the field types character, integer and real. Field delimiters can be specified on the command line:
txt2dbf 1.0.2, 09.09.98 by Frank Koormann
Usage: txt2dbf [{-Cn | -In | -Rn.d}] [-d delimiter] [-v] txt-file dbf-file
Specifying the target (dbf-file) is mandatory, because of binary writing ! The table can be read from a file (txt-file) or stdio.

dbf2txt

Conversion of dBase4 files into ASCII tables:
dbf2txt 0.5.2, 14.01.2000 by Frank Koormann
Usage: dbf2txt [-d delimiter] [-v] dbf-file

updated version (14.01.2000)

Specifying the source file is mandatory ! Converted records are written on stdout, i.e. they can be edited by a pipe or saved in a file. Changes (0.5.1 -> 0.5.2):
  • Bug fixed (missing dbf-file caused core dump instead of message)
Changes (0.5.0 -> 0.5.1):
  • delimiter selectable (option -d)
  • Bug fixed (tailing delimiter beyond last field)

Both programs are based on a revised version the dbf-library by Maarten Boekhold. They were implemented by me for my Diplomarbeit and later on further developed with support by Jan-Oliver Wagner.

This software is a very simple (hardly secured) tool. Hence, there cannot be given any guarantees nor any liability possible loss of data.

The program is free of charge as well as the source. With respect to Maarten the names (and comments) have to kept in all sources. In the near future it will be improved by the authors, so it better to collect all improvements at one place. Please send us all your adds, etc.

Download

The programes are implemented in C and compiled using the gcc. This should be possible on any platform. The package includes a makefile for Unix and Windows NT (using gmake and gcc).

(download) dbftools.zip - source codes txt2dbf (1.0.2) and dbf2txt (0.5.1) (15 KB)

(download) dbftools-cygwin.zip - txt2dbf (1.0.2) and dbf2txt (0.5.1) binaries for Windows (305 KB)

«Personen
Internal | Infoservice last modified: October 2001
E-Mail: Frank.Koormann@usf.Uni-Osnabrueck.DE