PHP 手册
后退
前进
ftruncate
(PHP 4 )
ftruncate -- 将文件截断到给定的长度
说明
bool
ftruncate
( resource handle, int size)
接受文件指针
handle
作为参数,并将文件大小截取为
size
。如果成功则返回
TRUE
,失败则返回
FALSE
。
后退
起点
前进
ftell
上一级
fwrite