You are developing an application that will read data from a text file and display the file contents.
You need to read data from the file, display it, and correctly release the file resources.
Which code segment should you use?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
A is correct
StreamReader object must be part of the “using” statement