The two different formats of specifying file path for opening the file C:\Myfiles\Text1.txt in read and write mode are:
file1 = open("C:\\Myfiles\\Text1.txt", "rb+")file2 = open(r"C:\Myfiles\Text1.txt", "rb+")
The two different formats of specifying file path for opening the file C:\Myfiles\Text1.txt in read and write mode are:
file1 = open("C:\\Myfiles\\Text1.txt", "rb+")
file2 = open(r"C:\Myfiles\Text1.txt", "rb+")