Thank you moritz,
actually I have many text files which I want to work through.
My idea was, to process each file per loop with the same array and then to save the outcome (per reference) in different files.
I have just tried it with my @Result declaration at the beginning i.e. above the loop. It works now! But: how can I empty this array if I start processing the next file?
Thank you!