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.
More Related Contents:
- Writing a list to a file with Python
- Get last n lines of a file, similar to tail
- open() gives FileNotFoundError/IOError: Errno 2 No such file or directory
- Writing a Python list of lists to a csv file
- How to open a file using the open with statement
- How to open a file for both reading and writing?
- Writing a list to a file with Python, with newlines
- Read from a log file as it’s being written using python
- Python Random Access File
- Why do I get “Pickle – EOFError: Ran out of input” reading an empty file?
- Open files in ‘rt’ and ‘wt’ modes
- Is pickle file of python cross-platform?
- python write string directly to tarfile
- pickle – putting more than 1 object in a file? [duplicate]
- pickle.load() raising EOFError in Windows
- how to count the total number of lines in a text file using python
- how to can i go over a file twice?
- Lazy Method for Reading Big File in Python?
- Reading binary file and looping over each byte
- Read file from line 2 or skip header row
- Skip first couple of lines while reading lines in Python file
- Monitoring contents of files/directories? [duplicate]
- What is the most efficient way to get first and last line of a text file?
- How to do virtual file processing?
- Getting file size in Python? [duplicate]
- How do I concatenate files in Python?
- Python – IOError: [Errno 13] Permission denied:
- How to read a single character at a time from a file in Python?
- For loop not working twice on the same file descriptor [duplicate]
- f.read coming up empty