Code Far M Stuck Get Info Show Console Screen Using System Using Static Systemconsole Usin Q37140598

Instructions Write the program ReadPatientRecords that reads the file Patients.txt and displays each patients data on the sc

Below is my code so far. I’m stuck on how to get the info toshow on the console screen.

using System;
using static System.Console;
using System.IO;
class ReadPatientRecords
{
   static void Main()
   {
       //Open FileStream
       FileStream inFile = newFileStream
         (“Patients.txt”, FileMode.Open, FileAccess.Read);
     
       //Open StreamReader
       StreamReader reader = newStreamReader(inFile);
     
       //Display Data
       ?
     
       //Close StreamWriter &FileStream
       reader.Close();
       inFile.Close();
   }
}

Instructions Write the program ReadPatientRecords that reads the file Patients.txt and displays each patient’s data on the screen. Show transcribed image text Instructions Write the program ReadPatientRecords that reads

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.