You can capture the different headers like this:-
vbnet Code:
' For Each ln In IO.File.ReadAllLines(iniFile) Dim app_name As String Dim file_name As String If ln.ToLower.StartsWith("app name") Then app_name = ln.Substring(ln.IndexOf(":"c) + 1) Continue For End If If ln.ToLower.StartsWith("app file") Then file_name = ln.Substring(ln.IndexOf(":"c) + 1) End If ''''You may add to your list here Next




Reply With Quote