Colleagues,
Subject line says it.
I have a CSV file with, say, 10 columns and N rows. I need to read it into Nx10 array. All I could find was File.ReadAllLines(), but it can produce only 1-dimensional array, whereas I need 2-dimensional one.
Granted, I can take this one-dimensional array, read and parse each row and feed it into 2-dimensional one (takes some time and "sweat", but doable).
But I hope there's some other built-in .NET function that reads CSV into 2-dimensional array... is there?
Please advise!
TIA!
Regards,
Ilya
Subject line says it.
I have a CSV file with, say, 10 columns and N rows. I need to read it into Nx10 array. All I could find was File.ReadAllLines(), but it can produce only 1-dimensional array, whereas I need 2-dimensional one.
Granted, I can take this one-dimensional array, read and parse each row and feed it into 2-dimensional one (takes some time and "sweat", but doable).
But I hope there's some other built-in .NET function that reads CSV into 2-dimensional array... is there?
Please advise!
TIA!
Regards,
Ilya