Question

Explain how file handling works in Python for text files. Mention different file modes, and a short description of read(), readline() and write().

25 Mar 2026
Answer :
Word Count : 298
In Python, file handling allows programs to create, read, update, and delete files. To work with a text file, the `open()` function is used, which returns a file object. The basic syntax is `file = open(filename, mode)`, where `filename` is the name of the file, and `mode` specifies the operation to be performed on the file. Common file modes _________ _______ ___ ______ __________ ___ _________ ____ __________ ______ ________ _________.
________ _____ ___ ________ ____ _______ _________ ___ _________ ______ _________.
_______ ____ __________ __________ ______ ______ __________ ______ _____ __________.
_____ __________ ________ ________ _______ __________ _____ _______.
____ _______ _______ _______ __________ ______ ___ ________ _______ ________ ___.
___ _____ ____ _________ ______ _______ _______ ____ ____ _______ ________ ______.
____ ___ _________ ______ _____ _________ ___ _________ ___ _____ __________ _________.
_____ ____ ___ _______ _____ ___ _______ _________.
______ _________ ________ _________ _____ _________ ______.
_________ _______ ___ _______ _________ _____ _________ _____ _____ ____ _________ _________.
___ ___ ____ ___ ________.
__________ _________ ________ ________ ____ ____ _________.
_____ _________ ___ __________ _______ ____ ____ __________ _____ ____.
________ _____ ________ _______ _________ ___ _____ _______ _____ _________ ______ ___.
___ _____ ________ __________ _________ ____ ___.
_______ ______ _______ ______ ______ ________ _______ ___ ______.
____ ________ _____ ______ _____ _____ ________.
____ ________ ________ _____ _________ _______ __________ ________ __________ ______ __________ _______.
________ ___ __________ _____ ___ ___ ________.
_________ ____ ___ _____ __________ ____ _____ ________ ________ ______.
________ __________ _________ ___ __________ _________ _____ ___ _______ ____ __________.
____ ____ ________ ___ ______ ___ __________ _________.
_______ _____ ___ __________ ________ ________ _________.
_____ _____ ____ ________ ________ ____ _____ __________ _______ ___ ____ _________.
________ _____ ______ ___ ______ ______ ___.
____ ____ ______ ______ ___.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Explain how file handling works in Python for text files. Mention diff
🟢
WhatsApp Chat Fast live messaging
Email Us Business enquiries & support