I'm taking a practice test for the exam 70-536. Below is a screenshot. The yellow highlighted is what the exam says is the correct answer. The one with the radio button selected is the answer I thought it was.
Note the explanation at the bottom which includes the statement:
To create a
StreamWriter
object, you must use an existingStream
object, such as an instance ofFileStream
.
I think the answer I chose is the most efficient use and I think the statement made in the explanation is wrong. Clearly, because the code in my selected answer worked fine.
Who's right????