String currentFile = "C:\\Program Files (x86)\\EXAMPLE\\FILE.js"; SaveFileDialog sfd = default(SaveFileDialog); if (fctb_code.Text.Length > 0) { sfd = new SaveFileDialog(); sfd.ShowDialog(); string location = currentFile; string sourcecode = fctb_code.Text; location = sfd.FileName; if (!object.ReferenceEquals(sfd.FileName, "")) { using (System.IO.StreamWriter writer = new System.IO.StreamWriter(location, false)) { writer.Write(sourcecode); writer.Dispose(); } }
C:\Program Files (x86)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)