Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27034

VS 2010 Help please! Stuck on .ini files

$
0
0
Hello there. Basically i have been coding a program and i've got to a part where now i need to have a windows form that has 11 text boxes, each text box reading a corresponding line from a config.ini file on my c drive. Then i want to make it so i have a write button which will write to the file any changes i have made in the textboxes. The config.ini has the following contents :

{ignore this line but in the file i need this to be a empty line so that the ini file starts 2 lines down}
[client]
name = ray
xres = 800
yres = 600
vol = 10
inverty = 0
windowed = 1
language = 0
mouse_sensitivity = 5.000000
show_news = 1



now comes the real challenge. i want to make it so i can only see everything after the = in the config file inside the textbox so that i am only changing the value at the end of the line, is this possible to do? and if so could some absolute life saver do this on a forms1 so i could set it up & test it. it would be greatly appreciated. thanks

Viewing all articles
Browse latest Browse all 27034

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>