File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -846,13 +846,15 @@ while True:
846
846
```
847
847
848
848
#### 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)
856
858
857
859
#### Read Text from File:
858
860
``` python
You can’t perform that action at this time.
0 commit comments