# OutputDataTable

> Writes a DataTable to a string using the CSV format.

Writes a DataTable to a string using the CSV format.

## Definition

**Namespace:** UiPath.Activities.System.API

**Assembly:** UiPath.System.Activities.Api (in UiPath.System.Activities.Api.dll)

## `OutputDataTable(DataTable)`

```
string OutputDataTable(
    DataTable dataTable
)
```

`dataTable` [DataTable](https://learn.microsoft.com/dotnet/api/system.data.datatable) : The DataTable object to be written into a string.

## Return value

[String](https://learn.microsoft.com/dotnet/api/system.string)

The output of the DataTable object as a string.
