I was rather confused by your post, even your example. Here, the code you pasted echoes

string length is 3 and file is: -5

Not 7 or anything. To the point, I didn't undestand what you'd want -n to do, but it already exists. -n prevents /write from appending a $crlf to the end of the written string.

Edit: posted without having seen sneaky DaveC's post.

Last edited by qwerty; 12/02/05 06:57 PM.