Next / Previous / Contents / Shipman's homepage

89. dbflatten: Convert a dBASE V file to flat format

This script takes a dBASE V .dbf file and writes the contents of the file in flat-file format.

89.1. Prologue

The dbflatten script is quite similar to Section 88, “dbfstruct: Display the structure of a dBASE V file”, q.v.

dbflatten
#!/usr/bin/env python
#================================================================
# dbflatten:  Dump a dBASE .dbf file in flat-file format.
# For documentation, see:
#   http://www.nmt.edu/~shipman/z/ibp/doc/iband7/ims/
#----------------------------------------------------------------

#================================================================
# Imports
#----------------------------------------------------------------

import sys
from dbf import *