New Posts  All Forums:Forum Nav:

Need a code that can do this

post #1 of 2
Thread Starter 
OK i'm doing this in Visual Basic.net 2010

I'm planning to make a tool that can read and rewrite variables in a specific .ini file. Like this:

...
line1propertya=2596
line2propertyb=6874
line3properytc=0
....

Another program stores its settings in this file and but my tool is going to provide a more efficient way so its users shouldn't be needing to go and edit it manually everytime with notepad.
For instance the built in tool of that particular program sets values to these properties only from 500-3000. This limited range becomes an issue sometimes. In some cases, some users need to set that value as low as 10. So what they do is finding that file and editing it manually. But my tool will enable the user to set that particular value as low as 0 and as high as 5000 without manually doing the job.

I hope you get my point. But i can't find the right code that edits just the values but doesn't touch the property names. If the property names gets changed, then the software wouldn't recognize its value. And i also don't know how to jump between the lines.
Edited by Nautilus - 5/11/12 at 12:43pm
BACI DESTROYER
(15 items)
 
  
CPUMotherboardGraphicsRAM
6700K @ 4.7 w/EK Monoblock ASUS Maximus Gene VIII NVIDIA TITAN X Pascal w/EK Waterblock & Backplate 32GB Gskill DDR4 3200Mhz w/EK Monarch ram block 
Hard DriveHard DriveCoolingOS
Samsung 950 Pro NVMe 512GB WD Black 4TB EK Revo D5, Nemesis GTS 420 + 280 rads, 5x 14cm... Win 10 Pro 
MonitorKeyboardPowerCase
ASUS SWIFT PG279Q 1440p 165Hz Razer Blackwidow Chroma Corsair RM1000x Fractal Design Define S 
MouseMouse PadAudio
Razer DeathAdder Chroma Razer Sphex Schiit Stack DAC&AMP + JBL LSR305 Studio Monitors 
  hide details  
Reply
BACI DESTROYER
(15 items)
 
  
CPUMotherboardGraphicsRAM
6700K @ 4.7 w/EK Monoblock ASUS Maximus Gene VIII NVIDIA TITAN X Pascal w/EK Waterblock & Backplate 32GB Gskill DDR4 3200Mhz w/EK Monarch ram block 
Hard DriveHard DriveCoolingOS
Samsung 950 Pro NVMe 512GB WD Black 4TB EK Revo D5, Nemesis GTS 420 + 280 rads, 5x 14cm... Win 10 Pro 
MonitorKeyboardPowerCase
ASUS SWIFT PG279Q 1440p 165Hz Razer Blackwidow Chroma Corsair RM1000x Fractal Design Define S 
MouseMouse PadAudio
Razer DeathAdder Chroma Razer Sphex Schiit Stack DAC&AMP + JBL LSR305 Studio Monitors 
  hide details  
Reply
post #2 of 2
You should research string manipulation. Once you have learnt the basics, such a task should be easy.
Daily
(16 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600K @ 4.8GHz, 1.4V Maximus IV Extreme GTX 560 DCII TOP 4x4GB Kingston HyperX 1866MHz CL11 
Hard DriveHard DriveCoolingCooling
Kingston HyperX 3K 120GB Samsung 640GB Thermochill PA120.2 Jingway DB-1 Pump 
CoolingCoolingOSMonitor
2x Kaze Jyuni 1900RPM EK Supreme HF Copper plexi Arch Linux x64 Acer X223HQ 1920x1080 
KeyboardPowerCaseMouse
Microsoft Sidewinder X4 Corsair HX750 Modded Corsair Carbide 500R Logitech M500 
  hide details  
Reply
Daily
(16 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600K @ 4.8GHz, 1.4V Maximus IV Extreme GTX 560 DCII TOP 4x4GB Kingston HyperX 1866MHz CL11 
Hard DriveHard DriveCoolingCooling
Kingston HyperX 3K 120GB Samsung 640GB Thermochill PA120.2 Jingway DB-1 Pump 
CoolingCoolingOSMonitor
2x Kaze Jyuni 1900RPM EK Supreme HF Copper plexi Arch Linux x64 Acer X223HQ 1920x1080 
KeyboardPowerCaseMouse
Microsoft Sidewinder X4 Corsair HX750 Modded Corsair Carbide 500R Logitech M500 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming