I am trying to output my data into .csv file. Into separate columns to be specific. And Im facing a problem where the program puts my data into one column.
This is what I get: http://prntscr.com/jk1q2y
And this is what I want to achieve but cant:http://prntscr.com/jk1rjz
Here is my code:
StringBuilder csvcontent = new StringBuilder();
csvcontent.AppendLine("Fullname,Age");
csvcontent.AppendLine("Mama,54");
string csvpath = "D:\\test.csv";
File.AppendAllText(csvpath, csvcontent.ToString());
I have googled every possible way of outputing data to .csv file and still am stuck with this thing.
I have came across idea that:
When opening the CSV, check that you're using the correct delimiter.
But honestly that doesnt ring any bells to me
Do you guys have any suggestions or ideas about this whole thing? Its driving me nuts. Any help appreciated :)