Write the file mode that will be used for opening the following file. Also, write the Python statement to open the following file: a binary file “bfile.dat” in write mode.
Advertisements
प्रश्न
Write the file mode that will be used for opening the following file. Also, write the Python statement to open the following file:
a binary file “bfile.dat” in write mode.
एक पंक्ति में उत्तर
Advertisements
उत्तर
“wb”
file_handle = open(“bfile.dat”, “wb”)
shaalaa.com
Types of Files in Python
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
