हिंदी

In which of the file open mode, the new content will be overwritten on the old content? -

Advertisements
Advertisements

प्रश्न

In which of the file open mode, the new content will be overwritten on the old content?

विकल्प

  • <r>

  • <w>

  • <a>

  • <rb>

MCQ

उत्तर

<w>

Explanation:

The file is opened in write mode when you type <w>. If the file doesn't already exist, it will be created. If it already exists, all of its contents will be rewritten.

shaalaa.com
Opening and Closing a Text Files
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×