Info
Content

Using bytes with files

To open a bytes-like file for writing, use wb.

open(file, "wb")

To open a bytes-like file for reading, use rb.

open(file, "rb")
No Comments
Back to top