Also change
code:
$=open(1,$file,1)  

to
code:
$=open(1,$file,2)  

_________________________
Home page: http://www.kixhelp.com/hb/