Thanks, but I think I was a little vague. It comes down to this.
I got an unspecified amount of lines from a textinput in a form named $FORM{'comment'}. This I wrote to a single line in a file, by stripping it from \n. (I replaced \n with %)
Now I want to read it again and make into something that reproduces the original input.