Hi,
I created a form that exports my textbox values to a text file now I am looking to import the information back from the text file to the textbox on my form is there a way to do this.
Below you will find the code I used to export the data
Any help would be appreciated
Thank You
-- Code --
Dim oFile As System.IO.File
Dim oWrite As System.IO.StreamWriter
oWrite = oFile.CreateText("C:\sample.txt")
oWrite.WriteLine("{0,10}{1,10}{2,25}", "Last Name", "First Name", "Age")
oWrite.WriteLine("{0,10}{1,10}{2,25}", Me.txtLastName.Text, Me.txtFirstName.Text, Me.txtAge.Text)
oWrite.Close()
I created a form that exports my textbox values to a text file now I am looking to import the information back from the text file to the textbox on my form is there a way to do this.
Below you will find the code I used to export the data
Any help would be appreciated
Thank You
-- Code --
Dim oFile As System.IO.File
Dim oWrite As System.IO.StreamWriter
oWrite = oFile.CreateText("C:\sample.txt")
oWrite.WriteLine("{0,10}{1,10}{2,25}", "Last Name", "First Name", "Age")
oWrite.WriteLine("{0,10}{1,10}{2,25}", Me.txtLastName.Text, Me.txtFirstName.Text, Me.txtAge.Text)
oWrite.Close()