how would i make it so i have a button that opens up "C:\text.txt" and displays it in a textbox then when u hit another button it saves it??
Printable View
how would i make it so i have a button that opens up "C:\text.txt" and displays it in a textbox then when u hit another button it saves it??
To open file...
Dim sr As New Streamreader("c:\text.txt")
textbox1.Text = sr.ReadToEnd()
sr.Close()
To save text...
Dim sw As New Streamwriter("c:\text.txt")
sw.Write(textbox1.Text)
sw.Close()
Think that should do it.