I want to read CSV to array, but the csv cointaned newline inside the cell.
CSV ( csvdata )
Title,Description,Tags,Category,Private,Images MyGreatTitle1,"After this line is blankline Text after blankline",techno,Tech,FALSE,C:\blogpostimg\img1.jpg MyGreatTitle2,"After this line is blankline Text after blankline",techno,Tech,FALSE,C:\blogpostimg\img2.jpg MyGreatTitle3,"After this line is blankline Text after blankline",techno,Tech,FALSE,C:\blogpostimg\img3.jpg MyGreatTitle4,"After this line is blankline Text after blankline",techno,Tech,FALSE,C:\blogpostimg\img4.jpg MyGreatTitle5,"After this line is blankline Text after blankline",techno,Tech,FALSE,C:\blogpostimg\img5.jpg MyGreatTitle6,"After this line is blankline Text after blankline",techno,Tech,FALSE,C:\blogpostimg\img6.jpg
I use this code :
string dir = AppDomain.CurrentDomain.BaseDirectory + @"blogpost";
string[] allLines = File.ReadAllLines(dir + "csvdatabase.csv");
How to read csv line by line but not inside cell?