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