var sp = new Spiral(dr, reverseY); var fin = WScript.StdIn; var fout= WScript.StdOut; var line=""; while( ! fin.AtEndOfStream ){ line += fin.ReadLine(); } line = line.replace(/[\s ]+/g, ""); if( reverse_string ) line = line.rev(); line = getSpiralString(line, sp, pitch, ratio); fout.Write(line); fin=fout=null;