Python File Seek, Definition and Usage The seek() method sets the current file position in a file stream.