Try this:
Code:
  var %f = test.log
  if ($exists(%f)) { write -c %f }
  var %m = $str(-,50) $+ |[ $+ $fulldate $+ ]: This file created from the $addon v $+ $cls_ver addon and display the $&
  clonescan scanning results from the scanning board.| $+ $str(-,50) $+ | $+ $crlf $+ |filter -fo %f $dname 1| $+ $crlf $+ | $+ $str(-,50) $+ |$&
  $+ Copyright © 2005/2011 by $cls_owner $+ . All rights reserved
  tokenize 124 %m | write %f $*
You don't have to remove the file every single time when you can erase it and start anew.

Last edited by Tomao; 25/02/11 05:53 PM.