File Operands Flashcards
1
Q
‘r’
A
- read only
- File not found if not created
2
Q
‘w’
A
- write only
- overwrites existing data
3
Q
‘r+’
A
- reading and writig
- error if not exists
4
Q
‘a+’
A
- appends and reads file
- creates if not exist
5
Q
‘w+’
A
- writes and reads
- creates if not exist
6
Q
‘t’
A
- text mode
- normal strings are written
7
Q
‘b’
A
- binary mode
- write content in binary