public function writeBytes(string $buf, int $num = null): int
    {
        unset($buf);
        unset($num);
        throw new FileAccessDenied(
            'This is a read-only file handle.'
        );
    }
public function writeBytes(string $buf, int $num = null): int
    {
        unset($buf);
        unset($num);
        throw new FileAccessDenied(
            'This is a read-only file handle.'
        );
    }
public function writeBytes ( string $ buf , int $ num = null ) : int { unset ( $ buf ) ; unset ( $ num ) ; throw new FileAccessDenied ( 'This is a read-only file handle.' ) ; }
This is a meaningless operation for a Read-Only File!

@param string $buf
@param int $num (number of bytes)
@return int
@throws FileAccessDenied
This is a meaningless operation for a Read - Only File!