You can capture the different headers like this:-
vbnet Code:
  1. '
  2.         For Each ln In IO.File.ReadAllLines(iniFile)
  3.             Dim app_name As String
  4.             Dim file_name As String
  5.  
  6.  
  7.             If ln.ToLower.StartsWith("app name") Then
  8.                 app_name = ln.Substring(ln.IndexOf(":"c) + 1)
  9.                 Continue For
  10.             End If
  11.  
  12.             If ln.ToLower.StartsWith("app file") Then
  13.                 file_name = ln.Substring(ln.IndexOf(":"c) + 1)
  14.             End If
  15.  
  16.  
  17.             ''''You may add to your list here
  18.            
  19.  
  20.         Next