Jevon Jevon - 6 months ago 31
C# Question

appendLine in cell next to the previous value

I have this function that executes on a button click.

private void button9_Click(object sender, EventArgs e)
StringBuilder csvconten = new StringBuilder();
string csvpath = "cross_check2.csv";
File.AppendAllText(csvpath, csvconten.ToString());

In this block of code:


I want the comoBox2.Text value to appear next to comboBox1.Text. currently it keeps going under comboBox2.Text. How do I get it beside it in the next cell?
Let me repeat, beside it i the next cell not in the same cell. it would be comboBox2.Text in cell A and comboBox2.Text in cell B


You're writing a csv file, your line of code appends it as a new line

This will append a single line separated by a comma.