Advertisement
AJ_Danger

Untitled

Sep 13th, 2019
2,476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1.  //Save File
  2. SaveFileDialog sfd = new SaveFileDialog();
  3.             sfd.Filter = "Txt Files (*.txt)|*.txt|Lua Files (*.lua)|*.lua|All Files (*.*)|*.*";
  4.             if (sfd.ShowDialog() == DialogResult.OK)
  5.             {
  6.                 Stream s = sfd.OpenFile();
  7.                 StreamWriter sw = new StreamWriter(s);
  8.                 sw.Write(fastColoredTextBox1.Text);
  9.                 sw.Close();
  10.                 fastColoredTextBox1.Clear();
  11.             }
  12.         }
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement