Sorry - I replied to the email without thinking! I was thinking about a safe_fread, but there are also fwrites and fgets in the loop which might be interrupted. _____________________________________________ Free email with personality! Over 200 domains! http://www.MyOwnEmail.com