Hi all,
I'm working on a project where the user puts in a value and then the program reads
the .txt file and if the two match then show the word behind it.(Example : Hi|Hey "Hey" will be shown in a TextBox).
I know that I have to split it with "|" but, I couldn't find a good code.
This is what I have so far :
Dim sFileName As String
Dim srFileReader As System.IO.StreamReader
Dim sInputLine As String
sFileName = "C:\Test.txt"
srFileReader = System.IO.File.OpenText(sFileName)
sInputLine = srFileReader.ReadLine()
Do Until sInputLine Is Nothing
sInputLine = srFileReader.ReadLine()
If sInputLine = TextBox2.Text Then
'Here must come the split function
I hope you guys can help me!
Vhyr