FileStream

php\io\FileStream

extends: php\io\Stream

Methods


read($length)

throws php\io\IOException

Parameters:
  • $lengthint - - count of bytes
Returns:

mixed

readFully()

throws php\io\IOException

Returns:mixed
write($value, $length = null)

throws php\io\IOException

Parameters:
  • $valuestring
  • $lengthnull, int
Returns:

int

eof()
Returns:bool
seek($position)

throws php\io\IOException

Parameters:
  • $positionint
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:
  • $sizeint