Hello all, I just joined the site.
I hope someone can help me with a minor problem, I have been searching both this site and google for the anwser... but keep getting stuck.
A dialog with a textbox is reading a text file within the project like this
Private Sub StandardPharses_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim mystream As System.IO.Stream = System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream("Textfile1.txt")
Using reader As New IO.StreamReader(mystream)
' Read the contents into TextBox
TextBox1.Text = reader.ReadToEnd
End Using
End Sub
That works fine, but how to save the edited text back to the file when I hit Save