CBSE Class 12 Computer Science
Question 63 of 136
Data File Handling — Question 2
Back to all questionsFile objects are used to read and write data to a file on disk. The file object is used to obtain a reference to the file on disk and open it for a number of different tasks. File object is very important and useful tool as through a file object only, a Python program can work with files stored on hardware. All the functions that we perform on a data file are performed through file objects.