Assignment: Reading Data from the keyboard versus a Data file
Write a program named READFILE.CPP to ask the user to type in, at the keyboard, the following information in the given order:
Given the data file: Data.dat
Next, print the information on the screen using a neat format.
View the file and write a program to read the information off of the file.
Print the information on the screen, each ‘piece' of data on a new line using a neat format.
See READ.CPP for Labels
Data.dat contents:
Foundations of Programming 19 231.43 A 54.2 CS 3.2 Joe Smith.
Attachment:- Data.rar