Hi,
I am importing a .csv file using StreamReader. I can not use Jet Engine as I cannot install it on client. I am reading it line by line and then split the line with comma and get the array. (Is there any more efficient way then this ?).
using (StreamReader sr = new StreamReader(_fileName))
{
string line;
while ((line = sr.ReadLine()) != null)
{
string[] fields = line.Split(',');
}
I have field like address which itself can contain comma. So I think the split logic can not work. Is there any better way to handle this.