Hi Sebastjan,

> Now the process runs through
Good!

> the stuff that is written in the file is mixed with
> the legacy content
Me too.
But your code re-open the file with 'a+' mode.
So, I think this is a normal behavior.

> the new content is again jibberish.
Ah,... what does that mean?

I got the file mixed the following:

   Here are the unused characters:
   "&a", "&b", "&c", "&d", "&e", .....

Do you mean that this is jibberish?

Sorry, I don't understand what you want to do correctly.

ashbb