FileStream¶
-
php\io\FileStream extends: php\io\Stream
Methods
read($length)¶throws php\io\IOException
Parameters:
- $length – int - - count of bytes
Returns: mixed
readFully()¶throws php\io\IOException
Returns: mixed
write($value, $length = null)¶throws php\io\IOException
Parameters:
- $value – string
- $length – null, int
Returns: int
eof()¶
Returns: bool
seek($position)¶throws php\io\IOException
Parameters:
- $position – int
Returns: mixed
getPosition()¶throws php\io\IOException
Returns: int
close()¶
Returns: mixed
length()¶
Returns: int
getFilePointer()¶throws php\io\IOException
Returns: int
truncate($size)¶throws php\io\IOException
Parameters:
- $size – int