Computer Science
Answer
File 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.
Related Questions
Assertion. CSV (Comma Separated Values) is a file format for data storage which looks like a text file.
Reason. The information is organized with one record on each line and each field is separated by comma.
What is the difference between "w" and "a" modes ?
How is file open() function different from close() function?
Write statements to open a binary file C:\Myfiles\Text1.txt in read and write mode by specifying file path in two different formats.