> 1) removing the fclose's stops the error happening... > 2) permission denied. thanks! with hindsight the error is obvious :) i updated the CVS to remove those 3 fclose() lines. russ. -- Russell Smith http://www.q12.org