I am unsure how to do this efficiently... I have an external text file that I want to be able to change values depending on the value in the text box in my form .
for example...mytext.txt looks like this
state1 minnesota
state2 "florida"
newstate3 #arizona
state4 Hawaii
...
...
I know that depending on the text box which field would need to be changed i.e. textbox1 = state 1. and textbox4 = state4 but am not sure how to get to the starting value and replace the value with what was in my text box. Do I use a streamReader to get me to the right line. but then how to I get to the value and replace content...It is not the same amount of spaces in between the keyword and value....
I am new to this use of vb but can see how it would be awesome for config values. just trying to figure out how to do this.
Thanks for your help in advance.
for example...mytext.txt looks like this
state1 minnesota
state2 "florida"
newstate3 #arizona
state4 Hawaii
...
...
I know that depending on the text box which field would need to be changed i.e. textbox1 = state 1. and textbox4 = state4 but am not sure how to get to the starting value and replace the value with what was in my text box. Do I use a streamReader to get me to the right line. but then how to I get to the value and replace content...It is not the same amount of spaces in between the keyword and value....
I am new to this use of vb but can see how it would be awesome for config values. just trying to figure out how to do this.
Thanks for your help in advance.