What does the context manager do when you are opening a file using with?

Questions & AnswersCategory: Programming LanguageWhat does the context manager do when you are opening a file using with?
Adam asked 2 years ago

What does the context manager do when you are opening a file using with?
a. It writes into the opened file
b. It closes the opened file automatically
c. It does nothing
d. It opens the file automatically