Why open it when you can clobber it?
If you're on a unix machine you could do: echo '' > filename
In Perl the equivalent would be to open the file in a way that clobbers the contents.
Hope that helps,
In reply to Re: Deleting on Files
by andye
in thread Deleting on Files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |