fin = open("c:\\pat.txt", "r")
Reason — The syntax to open a file in read-mode only is f = open("c:\\temp\\data.txt", "r"). Hence according to this syntax fin = open("c:\\pat.txt", "r") format is correct.
fin = open("c:\\pat.txt", "r")
Reason — The syntax to open a file in read-mode only is f = open("c:\\temp\\data.txt", "r"). Hence according to this syntax fin = open("c:\\pat.txt", "r") format is correct.