MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
truncate_file.inc
1
# truncate a giving file, all contents of the file are be cleared
2
3
if
(!$file)
4
{
5
--echo Please assign a
file
name
to
$file!!
6
exit;
7
}
8
9
let TRUNCATE_FILE= $file;
10
11
perl;
12
use Env;
13
Env::import(
'TRUNCATE_FILE'
);
14
open FILE,
'>'
, $TRUNCATE_FILE || die
"Can not open file $file"
;
15
close FILE;
16
EOF
mysql-test
include
truncate_file.inc
Generated on Sat Nov 9 2013 01:25:01 for MySQL 5.6.14 Source Code Document by
1.8.1.2