Seek 0 In Python, Use open (file, "r+") to read/write anywhere in a file.