Skip to content

Commit 28c49c3

Browse files
committed
Open function
1 parent 5ffbf97 commit 28c49c3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,13 @@ while True:
897897
* **`'t'` - Text mode (default).**
898898
* **`'b'` - Binary mode.**
899899

900+
#### Seek:
901+
```python
902+
<file>.seek(0) # Move to start of the file.
903+
<file>.seek(offset) # Move 'offset' chars/bytes from the start.
904+
<file>.seek(offset, <anchor>) # Anchor: 0 start, 1 current pos., 2 end.
905+
````
906+
900907
#### Read Text from File:
901908
```python
902909
def read_file(filename):

0 commit comments

Comments
 (0)