M

Mr. Dubey • 52.63K Points
Coach

Q. To open a file c:\scores.txt for appending data, we use                          

(A) outfile = open(“c:\\scores.txt”, “a”)
(B) outfile = open(“c:\\scores.txt”, “rw”)
(C) outfile = open(file = “c:\\scores.txt”, “w”)
(D) outfile = open(file = “c:\\scores.txt”, “w”)
Share

Explanation by: Mr. Dubey
 a is used to indicate that data is to be appended.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics