|
@ -1088,6 +1088,8 @@ Open |
|
|
<file>.write(<str/bytes>) # Writes a string or bytes object. |
|
|
<file>.write(<str/bytes>) # Writes a string or bytes object. |
|
|
<file>.writelines(<list>) # Writes a list of strings or bytes objects. |
|
|
<file>.writelines(<list>) # Writes a list of strings or bytes objects. |
|
|
``` |
|
|
``` |
|
|
|
|
|
* **No method adds or strips trailing newlines.** |
|
|
|
|
|
* **Changes are not written until file gets closed.** |
|
|
|
|
|
|
|
|
### Read Text from File |
|
|
### Read Text from File |
|
|
```python |
|
|
```python |
|
|