# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cgps.gitbook.io/data-flo/reference-guide/export-to-dbf-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
