truncate_file.inc 224 Bytes
Newer Older
1
2
# truncate a giving file, all contents of the file are be cleared

3
if (!$TRUNCATE_FILE)
4
{
5
  die TRUNCATE_FILE is not set;
6
7
8
}

perl;
9
open FILE, '>', $ENV{TRUNCATE_FILE} or die "open(>$ENV{TRUNCATE_FILE}): $!";
10
11
close FILE;
EOF