Advertisements
Advertisements
प्रश्न
What does the seekg() and seekp() functions do?
लघु उत्तर
Advertisements
उत्तर
seekg() and seekp() are C++ file-stream functions:
seekg()moves the get pointer, which controls the position for reading.seekp()moves the put pointer, which controls the position for writing.
In Python, the corresponding operation is performed using file.seek(offset). The current position is obtained using file.tell().
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
