Skip to content

Commit 7ca352a

Browse files
committed
Open
1 parent c5a1e5c commit 7ca352a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,14 +854,14 @@ while True:
854854
* `'t'` - text mode (default)
855855
* `'+'` - open a disk file for updating (reading and writing)
856856

857-
#### Read Text File:
857+
#### Read Text from File:
858858
```python
859859
def read_file(filename):
860860
with open(filename, encoding='utf-8') as file:
861861
return file.readlines()
862862
```
863863

864-
#### Write to Text File:
864+
#### Write Text to File:
865865
```python
866866
def write_to_file(filename, text):
867867
with open(filename, 'w', encoding='utf-8') as file:

0 commit comments

Comments
 (0)