Method Bz2.File()->write() Method write int write(string data) Description Writes the data to the file. Returns the number of bytes written to the file.