I want to write data to a csv file. But i can only get to the next row, not to the next column. I hope some people here know how to get to the next column.
String fileName = "C:\\Users\\hogen\\Desktop\\test.csv";
FileStream fileStream = new FileStream(fileName, FileMode.OpenOrCreate, FileAccess.Write);
string columnTitles = "test, test \n test \n test";
fileStream.Write(Encoding.ASCII.GetBytes(columnTitles), 0, columnTitles.Length);
fileStream.Close();
I get now:
test, test
test
test
in the csv file. How do i get the second test of the first row in the next column?
Maybe if u guys know this, could maybe give some good examples of reading columns with filestream?