Advertisements
Advertisements
प्रश्न
Tabulate the different modes with their meaning.
संक्षेप में उत्तर
उत्तर
Mode | Description |
V | open a file for reading (default) |
‘W’ | Open a file for writing. Creates a new file if it does not exist or truncates the file if it exists. |
‘x’ | Open a file for exclusive creation. If the file already exists, the operation fails. |
‘a’ | Open for appending at the end of the file without truncating it. Creates a new file if it does not exist. |
‘t’ | Open in text mode, default |
‘b’ | Open in binary mode. |
‘+’ | Open a file for updating (reading and Writing). |
shaalaa.com
Introduction to Python and CSV Files
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
A CSV file is also known as a ______
The expansion of CRLF is ______
Which of the following module is provided by Python to do several operations on the CSV files?
The command used to skip a row in a CSV file is ______
What is CSV File?
Write a note on the open() function of python. What is the difference between the two methods?