Hi,
I'm working with a text file and I want to add some lines inside it, but not necessary to the end (and I don't want to crunch previous data)...
Example:
My file.txt contain this:
[categorie1]
strawberry
banana
blueberry
[categorie2]
apple
orange
[categorie3]
bumbleberry
cranberry
citrus
[categorie4]
ananas
Then I want to add "grape" just under [categorie2] without crunching "apple" and all the end of the file (I want to append it, but not at the end necessary);
Wich fonction should I use? (I can't use a database...)
Thanks for your help!