Reading CSV Contents
This script can be used to read CSV file contents.
This script requies the using System.IO; directive.
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(',');
}
Last updated
Was this helpful?