How to read csv using LINQ ,some columns contain , -


i have csv in below way. "india,inc" company name single value contains , in it

how values in linq

12321,32432,423423,kevin o'brien,"india,inc",234235,23523452,235235

becuase you're reading values delminated bycommas, spaces shouldn't cause issue if treat them other character.

var values = file.readlines(path)     selectmany(line => line.split(',')); 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -