At the time your script sees this file it is already truncated.
In reply to Re: file input output problem by mamawe in thread file input output problem by convenientstore