vb.net Code:
  1. 'Get all the lines from the file.
  2. Dim lines As String() = IO.File.ReadAllLines("file path here")
  3.  
  4. 'Discard all but the last four lines.
  5. lines = lines.Skip(lines.Length - 4).ToArray()
  6.  
  7. For Each line As String In lines
  8.     'Split the line on the pipes.
  9.     Dim fields As String() = line.Split(","c)
  10.  
  11.     'Get the User Name field.
  12.     Dim userNameField As String = fields.Single(Function(f) f.TrimStart().StartsWith("User Name"))
  13.  
  14.     'Split the field into name and value.
  15.     Dim fieldParts As String() = userNameField.Split(":"c)
  16.  
  17.     'Get the field value.
  18.     Dim userName As String = fieldParts(1).Trim()
  19.  
  20.     MessageBox.Show(userName, "User Name")
  21. Next