.seek() code example Example: python seek file beginning after for line in file fileObject.seek(offset[, whence])