Question: Write a C# program to save courses in the Course.txt file, which should contain information about the credit, course ID, and course name. Previous data

 Write a C# program to save courses in the "Course.txt" file,

Write a C# program to save courses in the "Course.txt" file, which should contain information about the credit, course ID, and course name. Previous data will not be deleted when a new record is saved. (New data will be appended to the previous data.) After saving the record, content of the "Course.txt" file will be displayed. Display the number of courses which have 3 credits in the "Course.txt" file. Use the following methods. 1. To write data to "Course.txt": public slalic void WrileDala(Streamwriter sw) 2. To read data from "Course.txt": public static void ReadData(StreamReader sr) 3. To count records which have 3 credits courses in the file "Course.txt": public static void CountCourse(StreamReader sr) OUTPUT EXAMPLE 1 C:\WINDOWS\system32... Course ID: IE241 Course Name: Cost Analysis in Engineering Credit: 3 C\WINDOWS\system32\cmd.exe Course ID: TE241 Course Name: Cost Analysis in Engineering Credit: 3 TE 241 is saved successfully. IE241 is saved successfully. List of the courses: Course ID: IE117 Course Name: Computational Programming Tools in IE Credit: 3 Course ID: IE218 Course Name: Computer Applications in IE Credit: 4 Course ID: IE241 Course Name: Cost Analysis in Engineering Credit: 3 There are 3 courses. 2 of them are 3 credit courses. Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!