I want to create one csv file using C#.
I have some data which I want to write on multiple lines BUT within the same cell.
For example If I have following three sentences,
Sample sentence 1. This is second sample sentence. and this is third sentence.
I want to write all these three sentences within single cell of csv file but I want three of them on separate line.
My expected output is :
Sample sentence 1.
This is second sample sentence.
and this is third sentence.
Currently I am trying to achieve this by using \n
character between two sentences but when I do it this way, all three sentences go on separate row.
Can anyone please tell me how to solve this problem?