Skip to main content

FileBinaryWrite

You can use this class to write binary data: you pass bytes to it instead of strings.

Constructor

Signature

def FileBinaryWrite() - > null

Signature

def FileBinaryWrite(
file: str | PathLike,
mode: str = "wb",
buffering: int = -1
) - > null

Parameters

NameTypeDescription
file`strPathLike`
modestr = "wb"The file opening mode, defaulting to write-binary ('wb').
bufferingint = -1The buffering policy; -1 uses the default system buffer size.