मराठी

In how many ways can end of file be detected?

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:

  1. read(), readline() or iteration returns an empty string.
  2. While reading a binary pickle file, pickle.load() raises EOFError.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 7: Data File Handling - EXERCISE [पृष्ठ १४५]

APPEARS IN

सीबीएसई Computer Science with Python [English] Class 12
पाठ 7 Data File Handling
EXERCISE | Q 6. | पृष्ठ १४५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×