Hi I have a file named abc.conf :
It's structure is like this:
[101]
name = abc
address = 123
[102]
name = xyz
address = 456
If i want to edit the name of particular record like name 'xyz' of [102] to 'pqr', how to do it.
Thanks in advance.
Printable View
Hi I have a file named abc.conf :
It's structure is like this:
[101]
name = abc
address = 123
[102]
name = xyz
address = 456
If i want to edit the name of particular record like name 'xyz' of [102] to 'pqr', how to do it.
Thanks in advance.
Read the lines of the file into memory, make the changes you want to make to it and write the data back to disk.Quote:
how to do it.