Saving stream message in Save As dialog

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to open up Save As dialog to save dynamically generated message
on the fly. Clients will specify path and type file name. Thanks.
 
Joseph said:
I am trying to open up Save As dialog to save dynamically generated message
on the fly. Clients will specify path and type file name.

\\\
Dim sfdlg As New SaveFileDialog()
If sfdlg.ShowDialog() = DialogResult.OK Then
Dim sw As New StreamWriter(sfdlg.FileName)
sw.WriteLine("Hello World")
sw.Close()
End If
sfdlg.Dispose()
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top