My problem is this, I have a csv with two lines separated at the end by; and each word separated by, such that:
prueba.csv
gato,casa,http,antonio;
perro,abanico,https,libro;
Now I want to select the first row and put in variables each name for example string cat = cat that comes from the csv only from the first row and then the same with the second I tried with this code but only the letters are catching me:
c #
static void Main(string[] args)
{
int contador;
string datos;
var ruta = Directory.GetCurrentDirectory();
ruta = ruta + "/prueba.csv";
var lineas = File.ReadAllText(ruta);
Console.Write(lineas.Split(';'));
Console.ReadKey();
}