public function stream_read($length)
    {
        if ($this->fileHandle === null) {
            return false;
        }
        self::restore();
        $content = fread($this->fileHandle, $length);
        self::register();
        return $content;
    }
public function stream_read($length)
    {
        if ($this->fileHandle === null) {
            return false;
        }
        self::restore();
        $content = fread($this->fileHandle, $length);
        self::register();
        return $content;
    }
public function stream_read ( $ length ) { if ( $ this -> fileHandle === null ) { return false ; } self :: restore ( ) ; $ content = fread ( $ this -> fileHandle , $ length ) ; self :: register ( ) ; return $ content ; }
Read from a file

@param int $length
@return string
Read from a file