> For the complete documentation index, see [llms.txt](https://docs.tailent.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tailent.com/scripting-utility-classes/common-scripts-repository/c-scripts-repository/reading-csv-contents.md).

# Reading CSV Contents

This script requies the **using System.IO;** directive.

```csharp
String[] rows = File.ReadAllLines(@"C:\Users\user\Desktop\File.csv");

int startingRow = 0; 
//Starts at 1 if headers are present
for(int i = startingRow; i < rows.Count(); i++)
{  
    String[] cells =  rows[i].Split(','); 
}
```

{% hint style="info" %}

{% endhint %}
