Advertisements
Advertisements
प्रश्न
In how many ways can end of file be detected?
अति संक्षिप्त उत्तर
Advertisements
उत्तर
The end of a text file can be detected in two common ways:
read(),readline()or iteration returns an empty string.- While reading a binary pickle file,
pickle.load()raisesEOFError.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
