[求助]如何通过saveFileDialog把textbox中的内容写入文件
private void menuItem11_Click(object sender, System.EventArgs e) {Stream fs;
if(saveFileDialog1.ShowDialog() == DialogResult.OK) { if((fs = saveFileDialog1.OpenFile()) != null) { fs = (System.IO.FileStream)saveFileDialog1.OpenFile(); fs.EndWrite(编辑框.Text); }
fs.Close(); } } 有错误发生,达不到目标