hello
I want to create a button to save the .txt and , write what i've wrote in the source code
SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = "Queries|*.txt";
sfd.FileName = "blabla";
sfd.Title = "Save Querie as";
if (sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
string path = sfd.FileName;
BinaryWriter bw = new BinaryWriter(File.Create(path));
bw.Write(" ");
bw.Dispose();
}
but , bw.Write(" "); should be for 1 line
bw.Write("hi helo code project blabla etc");
but , what If I want many lines
bw.Write("Hello
code project
blabla
etc");
but in that case , it gives me error. because it reads that I've forgot to add "); and , started new corrupted line
Is there any thing should make it?