Evaluating a text file
Posted on 2006-06-24
I want to read the content of a text file and put the text in a structured way in some variables (maybe arrays).
The text file looks like
variable1 = content
variable2 = "content content"
variable3 = content1 variable3a = content 2 variable 3b = content3
All three above mentioned possibilities could occur. After reading the text file linie by line I have to check whether a certain variable is in the text file and what it value is. If there are more than one variable in one line like in the last example I have to check: "variable3 is in the text file. Is there also variable3a and / 3b set?".
How can I do this with VB 2005 Express Edition?