Kizspy | Question: 19
(Choose 1 answer)
Which of the following command is used to open a file "c:\temp.txt" in write-mode only?
A. outfile = open("c:\temp.txt", "w")
B. outfile = open("c:\\temp.txt", "w")
C. outfile = open(file = "c:\temp.txt", "w+")
D. outfile = open(file = "c:\\temp.txt", "w+")