

dim path as string path = Application.startuppath & "\test.txt"
dim strw as streamwriter strw = New StreamWriter(path) strw.Write(Textbox1.text) strw.Close()
dim strr as streamreader if file.exists(path) Then strr = New StreamReader(path) Textbox1.Text = strr.ReadToEnd() objDateiLeser.Close() end if
Dim Save As New SaveFileDialog
Save.Filter = "Text Files (*.txt)|*.txt|ALL FILES (*.*)|*.*"
Save.Title = "Save File"
Save.CheckPathExists = True
Save.ShowDialog(Me)
Try
My.Computer.FileSystem.WriteAllText(Save.FileName, TextBox1.Text, False)
Catch ex As Exception
End Try
Dim Open As New OpenFileDialog
Open.FileName = ("<File Location>")
Dim RT As New System.IO.StreamReader(Open.FileName)
TextBox1.Text = RT.ReadToEnd
Private Sub Form1_Load
Dim Open As New OpenFileDialog
Open.FileName = ("<File Location>")
Dim RT As New System.IO.StreamReader(Open.FileName)
TextBox1.Text = RT.ReadToEnd
End Sub
Program location -->> X:\Users\Nathanael789\Desktop
Notepad -->> X:\Users\Nathanael789\Desktop\Readme.txt
Code Will be : Open.FileName = ("Readme.txt")
Program location -->> X:\Users\Nathanael789\Desktop
Notepad -->> C:\Users\Nathanael789\Documents\Readme.txt
Code will be : Open.Filename = ("C:\Users\Nathanael789\Documents\Readme.txt")