How to get the value of a variable from a txt file

Hi @Nivedita2,

use Dictionary
Dictionary dict= new Dictionary(Of String, String), if both your key and value are strings.
Key=i.Split("="c)(1).ToString()
value=i.Split("="c)(1).ToString()
image

Dict(“CompName”).ToString ->it will return the value as Hello

Regards,
Arivu