CBSE Class 12 Computer Science
Question 65 of 136
Data File Handling — Question 4
Back to all questionsThe two different formats of specifying file path for opening the file C:\Myfiles\text1.dat in read and write mode are:
file1 = open("C:\\Myfiles\\text1.dat", "rb+")file2 = open(r"C:\Myfiles\text1.dat", "rb+")