Opens a file for reading only
r
Opens a file in binary format
b
Opens a file for appending; if the file does not exist, it creates a new file
a
Opens a file for writing only and overwrites the existing file
w
Adds a read or write operation depending on the one selected
+