Hello below is a sub that writes a bunch of information to a file.
Basicly it is in a way a 'save' method for my application. I now want to create a 'load' so to do this i will have to reverse this process, how may i do this? Note that since i am recording info through a for each loop the loops and the means of how information is retrieved must be in the same order.

Here is my code:

vb Code:
  1. 'Here:
  2. Private Sub AddCustomer()
  3.         Dim Customer_Info As New List(Of String)
  4.         For Each ctrl As Control In Me.CustomerEditArea.Controls
  5.             If Not (TypeOf (ctrl) Is Label) And Not (TypeOf (ctrl) Is CheckBox) And Not (TypeOf (ctrl) Is DateTimePicker) Then
  6.                 Customer_Info.Add(ctrl.Text.Trim)
  7.             End If
  8.         Next
  9.         Customer_Info.Add(DateSelecter.Value.ToString)
  10.         For Each chk As CheckBox In Me.CustomerEditArea.Controls
  11.             If TypeOf (chk) Is CheckBox Then
  12.                 Customer_Info.Add(chk.CheckState.ToString)
  13.             End If
  14.         Next
  15.         Customer_Info.Add(lblsubtotal.Text)
  16.         Customer_Info.Add(lbltotal.Text)
  17.         IO.File.WriteAllLines(ProfileDirectory & txtfirstname.Text.Trim & txtlastname.Text.Trim & ".ERcr", Customer_Info.ToArray)
  18.     End Sub