Originally Posted by doofusboy
You would need to open your C:\test.txt file for Output, read in a line with something like this:
Dim read_data As String
Line Input#1, read_data
Then, split what's read on the '=' to get what's on both sides of the equal sign with:
Dim a As String
Dim b As String
a = Split(read_data, "=") (0)
b = Split(read_data, "=") (1)
Then compare these values to what is in Text3 and Text4:
If Text3.Text = a And Text4.Text = b Then
' enter code here for what to do if they match
Else
' enter code here for what to do if they don't match
End If