データの各ビットの間にコンマを入れて、リスト全体をテキスト ファイルにコーディングするにはどうすればよいですか? 現在、ファイルnewDataを作成していますが、リストから変数を入れていません。これが私がこれまでに持っているものです。
public partial class Form1 : Form {
  List<string> newData = new List<string>();
}
上記は、リストを作成する場所です。以下は私がそれを読んでいるところです。
private void saveToolStripMenuItem_Click(object sender, EventArgs e) {
  TextWriter tw = new StreamWriter("NewData.txt");
  tw.WriteLine(newData);
  buttonSave.Enabled = true;
  textBoxLatitude.Enabled = false;
  textBoxLongtitude.Enabled = false;
  textBoxElevation.Enabled = false;
}
以下は、変数がどこから来ているかです。
private void buttonSave_Click(object sender, EventArgs e) {
  newData.Add (textBoxLatitude.Text);
  newData.Add (textBoxLongtitude.Text);
  newData.Add (textBoxElevation.Text);
  textBoxLatitude.Text = null;
  textBoxLongtitude.Text = null;
  textBoxElevation.Text = null;
}