Hi, I am trying to write a somewhat basic program to read and write to a .cfg file(text file).
Inside the .cfg file are a bunch of lines like so:
server 127.0.0.1
servername Test
server_no 1
server_group 1
etc, etc.
The first word in the line being the name and second being the value. What I am wanting to do is to read/load all of these values into separate text boxes, be able to edit them, and then save/write them back to the file(append).
What I am needing assistance with is how to read the information and write the information since the name needs to stay the same, and I just need to edit the value.
Basically I would like it to search the document, find the name string, and load whatever the value is into the text box.
Any assistance would be appreciated. Thanks.