Which of the following statement is used to open the file C:\Sample.txt in append mode?

Questions & Answers › Category: Programming Language › Which of the following statement is used to open the file C:\Sample.txt in append mode?
Adam asked 4 years ago

Which of the following statement is used to open the file C:\Sample.txt in append mode?
a. open(‘C:\Sample.txt’, ‘w+’)
b. open(‘C:/Sample.txt’, ‘a’)
c. open(‘C:\Sample.txt’, ‘w’)
c. open(‘C:\Sample.txt’, ‘r+’)