public function read(int $length = 1, int $offset = 0) : string
    {
        return substr($this->getContent(), $offset, $length);
    }
public function read(int $length = 1, int $offset = 0) : string
    {
        return substr($this->getContent(), $offset, $length);
    }
public function read ( int $ length = 1 , int $ offset = 0 ) : string { return substr ( $ this -> getContent ( ) , $ offset , $ length ) ; }
Returns a string of specified length from file.

@param int $length Length to read.
@param int $offset Length to skip before reading.

@return string String from file of given length.
Returns a string of specified length from file .