python open seek code example
Example: file seek python
# Change the current file position to 4, and return the rest of the line
f = open("demofile.txt", "r")
f.seek(4)
print(f.readline())
# Change the current file position to 4, and return the rest of the line
f = open("demofile.txt", "r")
f.seek(4)
print(f.readline())