Opening file in binary read mode | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Opening file in binary read mode

since "r" is default can't we just put "b" to open in binary read mode instead of "rb"?

5th May 2017, 7:27 PM
Abou abdelmohsin Hichem
Abou abdelmohsin Hichem - avatar
1 Answer
+ 5
No. You have to use 'rb'
5th May 2017, 7:58 PM
Ulisses Cruz
Ulisses Cruz - avatar