Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SaveFileDialog saveFileDialog1 = new SaveFileDialog();
- if (saveFileDialog1.ShowDialog() == DialogResult.OK)
- {
- using (Stream s = File.Open(saveFileDialog1.FileName, FileMode.CreateNew))
- using (StreamWriter sw = new StreamWriter(s))
- {
- sw.Write(fastColoredTextBox1.Text);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement