Use the OpenTextFileReader method to open the xref:System.IO.TextReader, specifying the file. This example opens the file named testfile.txt, reads a line from it, and displays the line in a message ...