I have a file named patients.txt containing strings of data.
IE:
I want to be able to read the file, and save each line to an array which will allow me to display each item on the form.
I've tried quite a few different options, but it doesn't display anything in the text boxes.
IE:
Code:
Alan Jackson 123 Main St 123-4567 Anthem A123 $200.00 $100.00 $100.00
Dr. Smith 5' 6" 179 27 120/97 False 04-09-12 1
Elise Farawar 732 Here 987-6543 Signa B456 $500.00 $480.00 $20.00
Dr. Smith 5' 5" 125 24 95/60 False 03-12-11 2
I've tried quite a few different options, but it doesn't display anything in the text boxes.
Code:
Private Sub btnNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNext.Click
Dim PatientInfo As StreamReader = File.OpenText("patients.txt")
Dim strPatient(9) As String
Dim strMedical(8) As String
strPatient(9) = PatientInfo.ReadLine
strMedical(8) = PatientInfo.ReadLine
txtFirst.Text = strPatient(0)
End Sub
End Class