-->

Stacks & Queues In List

Question
CBSEENCO12011594

Differentiate between file modes r+ and rb+ with respect to Python.

Solution

Difference b/w r+ and rb+ with respect to Python

r+   rb+ 
r+ Opens a file for both reading and writing. The file pointer placed at the beginning of the file. rb+ Opens a file for both reading and writing in binary format. The file pointer placed at the beginning of the file.