Hello,
I need help.
I have a file test.txt, and this content in it:
[group 1]
immediate=yes
links=1,14,12,22
avaliable=no
[group 2]
immediate=no
links=1,4,14,22
Now, I also have a WEB app with database, where I can change both groups, and the only this missing is, that when a change is made in on group, that I write it to the file test.txt.
I know how to write to files, but here is the problem (2 examples):
[*]If I change on the WEB page below group 1 from immediate=yes to immediate=no -> how can I change this in the file (just for group 1).
[*]If I change on the WEB page below group 2 to avaliable=yes -> how can I add this line in the file below group 2
To summarize - I have problems detecting where the group 1 or group 2 starts and end - so I only change for each group.