I need change a value in a ini file like this val2 is the one being changed
Before
[section1]
var1=val1
var2=val2
var3=va3
After:
[section1]
var1=val1
var2=value
var3=va3
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to do it the best way use the appropriate distro for rewriting the
.inifile. Here is an overview of the API.