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

Questions & AnswersCategory: Programming LanguageWhich of the following statement is used to open the file C:\Sample.txt in append mode?
Adam asked 3 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+’)