Seeking in files PREMIUM

Series: Files
Trey Hunner smiling in a t-shirt against a yellow wall
Trey Hunner
5 min. read 4 min. video Python 3.7—3.11
Python Morsels
Watch as video
04:18

What does it mean to seek in a file?

Python keeps track of your file position

Here we have a text file called my_file.txt:

...

A Python Tip Every Week

Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.

Python Morsels
Watch as video
04:18