What is the difference between rb and r+b modes in file objects [duplicate]

r+ is used for reading, and writing mode. b is for binary.
r+b mode is open the binary file in read or write mode.
You can read more here.

Leave a Comment