Hi.
I like search a file TXT with this contains:
Name "Paul"
Age "11"
City "Chicago"
my question is:
Its possible get a string "Name" and give me the value "Paul"?
I have this function for get strings:
rivate Function ProcessString(ByVal strIn As String) As String
Dim astrWords As String() = New String() {"Name", "Age", "City"}
Dim strOut As String = strIn
Dim strWord As String
For Each strWord In astrWords
If strIn.IndexOf(strWord, 0) >= 0 Then
strOut = strWord
Exit For
End If
Next
Return strOut
End Function
But i can't get the values after string..
Anyone can help me?
I like search a file TXT with this contains:
Name "Paul"
Age "11"
City "Chicago"
my question is:
Its possible get a string "Name" and give me the value "Paul"?
I have this function for get strings:
rivate Function ProcessString(ByVal strIn As String) As String
Dim astrWords As String() = New String() {"Name", "Age", "City"}
Dim strOut As String = strIn
Dim strWord As String
For Each strWord In astrWords
If strIn.IndexOf(strWord, 0) >= 0 Then
strOut = strWord
Exit For
End If
Next
Return strOut
End Function
But i can't get the values after string..
Anyone can help me?