Skip to content

Commit 0f3c838

Browse files
committed
File
1 parent dd2c42e commit 0f3c838

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -846,13 +846,15 @@ while True:
846846
```
847847

848848
#### Modes:
849-
* `'r'` - open for reading (default)
850-
* `'w'` - open for writing, erasing the file first
851-
* `'x'` - open for exclusive creation, failing if the file already exists
852-
* `'a'` - open for writing, appending to the end of the file if it exists
853-
* `'b'` - binary mode
854-
* `'t'` - text mode (default)
855-
* `'+'` - open a disk file for updating (reading and writing)
849+
* `'r'` - read (default)
850+
* `'w'` - write (truncate)
851+
* `'x'` - write or fail if the file already exists
852+
* `'a'` - append
853+
* `'w+'` - read and write (truncate)
854+
* `'r+'` - read and write from begining
855+
* `'a+'` - read and write from end
856+
* `'b'` - binary mode
857+
* `'t'` - text mode (default)
856858

857859
#### Read Text from File:
858860
```python

0 commit comments

Comments
 (0)