Ravi opened a file in a certain mode. After opening the file, he forgot the mode. One interesting fact about that mode is ” If the file already exists, all the contents will be overwritten”. Help him to identify the correct mode.
1.read mode
2.write mode
3.append mode
4.binary and read mode