标签:style blog color ar 使用 sp div log bs
private void btnOpen_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == DialogResult.OK) { string fileName = openFileDialog1.FileName; txtInfo.Clear(); txtInfo.Text = File.ReadAllText(fileName); } } private void btnSave_Click(object sender, EventArgs e) { if (saveFileDialog1.ShowDialog() == DialogResult.OK) { string fileName = saveFileDialog1.FileName; File.WriteAllText(fileName, txtInfo.Text); } }
openFileDialog与saveFileDialog的使用
标签:style blog color ar 使用 sp div log bs
原文地址:http://www.cnblogs.com/yshyee/p/4074729.html