# 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>" %}
