I want to prepend headers to my CSV File as to let the data reflect the headings. How would I go about this without having to add it each time writing to the file? Meaning I onl
Got the answer by simply editing my code with this snippet:
if (!File.Exists(path)) { System.IO.File.WriteAllText(path, rxHeader + textBox8.Text); } else { System.IO.File.AppendAllText(path, textBox8.Text); MessageBox.Show("Export of " + comboBox5.Text + " table is complete!"); textBox8.Clear(); }