VB Code:
' open the file .... you should add an error handler
Dim sr As StreamReader = File.OpenText("c:\test.txt")
Dim aLine, value As String
Dim delimPos As Integer ' Holds the position of the delimiter ("=") in the line
' Read until the end of the file
Do While sr.Peek() <> -1
' Read a line from the file
aLine = sr.ReadLine()
delimPos = aLine.IndexOf("=")
If delimPos = -1 Then
' Error, no delimiter found!
' throw an error ...
Else
' Get the value from the line
value = aLine.Substring(delimPos + 1)
' Remove extra spaces
value = value.Trim()
End If
' Do whatever you want with the value right here
Loop
' Close the file
sr.Close()