Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Save File
- SaveFileDialog sfd = new SaveFileDialog();
- sfd.Filter = "Txt Files (*.txt)|*.txt|Lua Files (*.lua)|*.lua|All Files (*.*)|*.*";
- if (sfd.ShowDialog() == DialogResult.OK)
- {
- Stream s = sfd.OpenFile();
- StreamWriter sw = new StreamWriter(s);
- sw.Write(fastColoredTextBox1.Text);
- sw.Close();
- fastColoredTextBox1.Clear();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement