Sorry about that I did miss the $ infront of my variable for that Line.

One more question for you though

Now i have two variable and i want to put them in an array with "" around them and seperated by a comma. So i can later go through the array and write a csv list to a file.

But when I try

$txttowrite[$index]="+$split3[1]+'","'+$split1[0]+"

I get errors. I know the syntax is wrong, but don't know the right syntax. I can get it shows the qoutes and comma in the middle, but not on the outside.

Thanks