Hello,
I have a config file (config.ini)
There are many sections, e.g.
[PaperColor]
PaperColor1=white
PaperColor2=orange
PaperColor3=pink
PaperColor4=gray
PaperColor5=cyan
PaperColor6=red
PaperColor7=yellow
PaperColor8=green
PaperColorDefault=9
PaperColor9=blue
PaperColor10=weiss
I want to add a new color value. The new value should be added behind the value
"PaperColor10=weiss", and should be;
PaperColor11=newcolor
How can I do this all?. I think I first have to read the complete file?
I do not know how I can add the new value exact at this position?
Can I do this with regular expressions?
Later I also want to delete a color value.
thanks for any tipp or code
regards
hawk