bzwrite Binary safe bzip2 file write Description intbzwrite resourcebz stringdata intlength bzwrite writes the contents of the string data to the bzip2 file stream pointed to by bz. If the optional length argument is given, writing will stop after length (uncompressed) bytes have been written or the end of string is reached, whichever comes first. <function>bzwrite</function> Example ]]> See also bzread and bzopen.