in reply to Deleting on Files
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,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Deleting on Files
by Anonymous Monk on Feb 28, 2007 at 16:17 UTC | |
by andye (Curate) on Feb 28, 2007 at 16:23 UTC | |
by Anonymous Monk on Feb 28, 2007 at 16:23 UTC | |
by eric256 (Parson) on Feb 28, 2007 at 17:13 UTC |