> For the complete documentation index, see [llms.txt](https://cgps.gitbook.io/data-flo/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cgps.gitbook.io/data-flo/reference-guide/export-to-dbf-file.md).

# export-to-dbf-file

## Description

<mark style="color:purple;">`export-to-dbf-file`</mark> *adaptor exports a datatable as a* [*dBase database file*](https://en.wikipedia.org/wiki/.dbf)*.*

## Inputs

**`data`**\
Type: `datatable`\
Required: Yes\
Data to be imported.

**`column types`**\
Type: `dictionary`\
Required: Yes\
A dictionary of column name with [data type](https://www.dbase.com/Knowledgebase/INT/db7_file_fmt.htm).

**`output file name`**\
Type: `text`\
Required: No\
The name of the file to create. If unspecified, defaults to `file.dbf`.

## Outputs

**`dbf`**\
Type: `file`\
Exported file DBF format

## Examples

### Example 1: Default behaviour.

#### Inputs:

`data:`

| id | code | countries      |
| -- | ---- | -------------- |
| 1  | GB   | United Kingdom |
| 2  | TR   | Turkey         |
| 3  | US   | United States  |

`column types:`

| KEY       | VALUE |
| --------- | ----- |
| id        | N 2   |
| code      | C 100 |
| countries | C 100 |

`output file name:` *null (empty)*

#### Outputs:

`file`: file.dbf

-> Exported datatable to a dBase file.
