Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Save As New SaveFileDialog() Dim myStreamWriter As System.IO.StreamWriter Save.Filter = "Plain Text Files (*.txt)|*.txt|All files (*.*)|*.*" Save.CheckPathExists = True Save.FileName = TextBox1.Text Save.Title = "Save" Save.ShowDialog(Me) Try myStreamWriter = System.IO.File.CreateText(Save.FileName) myStreamWriter.WriteLine(TextBox1.Text) myStreamWriter.WriteLine(TextBox2.Text) myStreamWriter.WriteLine(TextBox3.Text) mystreamwriter.close() Catch ex As Exception End Try End Sub Private Sub button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button2.Click Dim Open As New OpenFileDialog() Dim myStreamReader As System.IO.StreamReader Open.Filter = "Plain Text Files (*.txt)|*.txt|All files (*.*)|*.*" Open.CheckFileExists = True Open.Title = "Open" Open.ShowDialog(Me) Try Open.OpenFile() myStreamReader = System.IO.File.OpenText(Open.FileName) TextBox1.Text = myStreamReader.ReadLine TextBox2.Text = myStreamReader.ReadLine TextBox3.Text = myStreamReader.ReadLine Catch ex As Exception End Try End Sub Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles Button3.Click For Each txt As Control In Me.Controls If TypeOf txt Is TextBox Then txt.Text = "" End If Next End Sub