I am a novice and found some info here on howto make a script that write a text line to files. The result seems fine (also for multiple files), except that the text ends up at t