see /help $v1 no need for "halt" no need to unset the variable is not global and $str($chr(32),2) dont work must be with 160 $str($chr(160),2) finaly for $read need to add $qt() better if a file had a space that will not work
1) I'll read up on $v1, as others also suggested.
2) Yes, the halt isn't needed. I could have also made an IF condition at the end, but I didn't, because why go through the trouble of executing the rest of the script when an error has occured anyways? :_)
3) read my code again. there is a reason I'm unsetting the variable; if you create a variable by INC'ing it, it's a global variable by default, or so it seems.
4) "$str($chr(32),2) dont work".. what? sure it does. it works fine for me. I generally test my code before posting it here.
5) $qt(), I should have used that indeed.
and last but not least:
6) learn to use punctuation, it makes your text more readable, and on top of that you won't come across as a moron.