We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5a1e5c commit 7ca352aCopy full SHA for 7ca352a
README.md
@@ -854,14 +854,14 @@ while True:
854
* `'t'` - text mode (default)
855
* `'+'` - open a disk file for updating (reading and writing)
856
857
-#### Read Text File:
+#### Read Text from File:
858
```python
859
def read_file(filename):
860
with open(filename, encoding='utf-8') as file:
861
return file.readlines()
862
```
863
864
-#### Write to Text File:
+#### Write Text to File:
865
866
def write_to_file(filename, text):
867
with open(filename, 'w', encoding='utf-8') as file:
0 commit comments