The following three files: DBF2DAT.EXE, DBFDATLF.EXE and DBFCRLF.EXE
may be distributed freely, as long as no there is no charge, this
file (DBF2DAT.DOC) is distributed with the programs, and they are kept
in a single unmodified archive.


Terry Carmen can be contacted at:
tpcarmen@servtech.com or
1:260/338@fidonet or 
The Reef (315)446-4150


Purpose: 

DBF2DAT copies records from a dBase III+ compatible DBF file to a
text file with fixed length records and no delimiters.

DBFDATLF copies records from a dBase III+ compatible DBF file to a
text file with fixed length records delimited with linefeeds (0x0A).

DBFCRLF copies records from a dBase III+ compatible DBF file to a
text file with fixed length records delimited with return/linefeed
pairs (0x0D, 0x0a).


Usage: DBF2DAT [DBF filename]  [output filename]
               (input)         (output) 


Example: dbf2dat customer.dbf customer.dat
produces an output file called customer.dat containing fixed length
records, from the input file customer.dbf


Notes:

Deleted records are not transferred.  

The input file is never modified. 

In order to safeguard your data, the program will *never* overwrite
the output file. If you specify an output file that already exists,
the program will exit with an errorlevel 13.


The program will always exit with one of the following errorlevels:

 0 Normal termination
 1 the program was called with an incorrect number of arguments.
 2 The input file can't be opened.
 3 The output file can't be opened.
 4 The seek to BOF on the input file failed.
 5 Not enough memory. Unable to allocate buffer for DBF header.
 6 The DBF header read failed.
 7 Not enough memory. Unable to allocate memory for I/O data buffer.
 8 Unable to activate disk I/O buffer.
 9 The input file is not a dBase III+ compatible file.
10 The seek to beginning of the input data failed.
11 Not enough memory. Unable to allocate space for record buffer.
12 Unable to write record to output file.
13 The output file already exists.
14 Unable to read record from the input file


Note: There may be a one byte difference between the actual size of
the DBF file and the size you may calculate using the information
provided by the program. 

The difference is because some programs place an END-OF-FILE marker
at the end of the DBF file, and some don't. This has no effect on the
output file.



