problems with streamwriter output to .csv
IT & Infrastructure
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I'm trying to write to a file which shud be .csv. I'm using streamwriter for that as StreamWriter sw = new StreamWriter (Server.MapPath"~/ImportData/Files/"+_FileName),true,Encoding.Unicode); Now the problem is, when i try to open the file in excel does not see the commas in the file and puts all data for that row in the first column. I can resolve this issue by replacing Unicode with Default, but this solve the problem only for culture english. I should definatley go with Unicode, as i have to use this for different cultures. Please, let me know if any ideas, as I'm stuck on this. Thanks robust