Suppose we want to open the file c:\scores.txt to add some lines to the existing contents. The statement for this should be:
1
outfile = open(“c:\\scores.txt”, “a”)
2
outfile = open(“c:\scores.txt”, “a”)
3
outfile = open(file = “c:\scores.txt”, “r+”)
4
outfile = open(file = “c:\\scores.txt”, “wb+”)