private void saveToolStripMenuItem_Click(object sender, EventArgs e) { StreamWriter sw = new StreamWriter(str); vector.Save(sw); sw.Close(); }