1f = open("test.txt") # equivalent to 'r' or 'rt'
2f = open("test.txt",'w') # write in text mode
3f = open("img.bmp",'r+b') # read and write in binary mode
1>>> f = open("test.txt") # open file in current directory
2>>> f = open("C:/Python38/README.txt") # specifying full path