# Read CSV

This action can read the contents of a CSV file.

## **Properties**

<figure><img src="https://649489153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSSr3DfBuOYIkk2T9ec%2Fuploads%2FcZjEJtYGhDIyhwC925Cr%2Fimage.png?alt=media&#x26;token=ac55afa9-1e16-46b4-bb90-a63b5994dd69" alt=""><figcaption></figcaption></figure>

### **Input**

* **File Name**: The path of the CSV file to read.
* **Include Headers**: Specifies if the output DataTable will include headers.\
  True/False.

### **Output**

* **Output:** The name of the variable to store the value.

{% hint style="info" %}
**Note:** The variable must be a DataTable.
{% endhint %}

### **Misc**

* **Display Name**: action display name in your implementation project.
* **Wait Before**: number milliseconds robot to wait before executing the action.
* **Wait After:** number milliseconds robot to wait until moving to the next action.
* **Abort on Error**: True/False
* **Retry Times**: Specifies the number of times to retry an action if it doesn't end successfully. Default value 0 (no retry); Use -1 if you want to retry indefinitely.&#x20;

## **Use Case**

### **Potential Use Cases**

* Read data from a CSV file containing weekly reports.
* Read data from CSV files in a loop.

### **Examples of Using Read CSV**

**Example**&#x20;

Watch the robot in action:

{% embed url="<https://www.youtube.com/watch?v=MWw9Vybky4E>" %}

You can check and download the example from here:

{% file src="<https://649489153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSSr3DfBuOYIkk2T9ec%2Fuploads%2FqLlBAUtyTEilQVeZFKiC%2FRead%20CSV.zip?alt=media&token=ad0df085-586f-49ea-9ba6-a252494aa8f8>" %}


---

# 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://docs.tailent.com/actions/tap-actions/csv/read-csv.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.
