Read .ini file vb.net?
I have one project with function to read .ini files. I can not display the contents of .ini file that I want to. My code to read .ini file Public Function GetSettingItem(ByVal File As String, ByVal Identifier As String) As String Dim S As New IO.StreamReader(File) : Dim Result As String = "" Do While (S.Peek <> -1) Dim Line As String = S.ReadLine If Line.ToLower.StartsWith(Identifier.ToLower & "=") Then Result = Line.Substring(Identifier.Length + 2) End If Loop Return Result End Function My code to load code Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)