File Operands Flashcards

1
Q

‘r’

A
  • read only
  • File not found if not created
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

‘w’

A
  • write only
  • overwrites existing data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

‘r+’

A
  • reading and writig
  • error if not exists
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

‘a+’

A
  • appends and reads file
  • creates if not exist
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

‘w+’

A
  • writes and reads
  • creates if not exist
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

‘t’

A
  • text mode
  • normal strings are written
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

‘b’

A
  • binary mode
  • write content in binary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly