Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. SaveFileDialog sfd = new SaveFileDialog();
  2. sfd.Filter = "Txt Files (*.txt)|*.txt|Lua Files (*.lua)|*.lua|All Files (*.*)|*.*";
  3. if (sfd.ShowDialog() == DialogResult.OK)
  4. {
  5. Stream s = sfd.OpenFile();
  6. StreamWriter sw = new StreamWriter(s);
  7. sw.Write(FastColoredTextBox1.text);
  8. sw.Close();
  9. FastColoredTextBox1.clear();
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement