1. Engineering
  2. Computer Science
  3. write a cpp program to read contents of the file...

Question: write a cpp program to read contents of the file...

Question details

Write a cpp program to read contents of the file student.txt and produce the following output as shown below:

D:luccd1024 may2018 Assignment1\test-roject-jan2019\Debug\test-rojec Student 1 Name: Matt Id: 1200233 Course: CS Phone: 790-3233 Student 2 Name: Benny Id: 1201237 Course: IA Phone: 432-4579 Student 3 Name: Salma Id: 1300899 Course: IB Phone: 790-0000 Student 4 Name: Ken Id: 1502378 Course: CN Phone: 892-3765 Student 5 Name: Sammy Id: 1603679 Course: IB Phone: 693-2367 Press any key to continue . . .

TEXT FILE:

Student Id = 1200233
Name = Matt
Course = CS
Phone Number = 790-3233

Student Id = 1201237
Name = Benny
Course = IA
Phone Number = 432-4579

Student Id = 1300899
Name = Salma
Course = IB
Phone Number = 790-0000

Student Id = 1502378
Name = Ken
Course = CN
Phone Number = 892-3765

Student Id = 1603679
Name = Sammy
Course = IB
Phone Number = 693-2367
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution