truncate 'filename', 0;
In reply to Re: cleaning out a file by blackwolf in thread cleaning out a file by Simplicus