|
|
@ -897,6 +897,13 @@ while True: |
|
|
|
* **`'t'` - Text mode (default).** |
|
|
|
* **`'b'` - Binary mode.** |
|
|
|
|
|
|
|
#### Seek: |
|
|
|
```python |
|
|
|
<file>.seek(0) # Move to start of the file. |
|
|
|
<file>.seek(offset) # Move 'offset' chars/bytes from the start. |
|
|
|
<file>.seek(offset, <anchor>) # Anchor: 0 start, 1 current pos., 2 end. |
|
|
|
```` |
|
|
|
|
|
|
|
#### Read Text from File: |
|
|
|
```python |
|
|
|
def read_file(filename): |
|
|
|