Question: Writing and Reading a Binary File Create a text file that stores a First name, a last name, and an age, one record per line.
Create a text file that stores a First name, a last name, and an age, one record per line.
TheCprogram will read a line of text from this file and then create a structure (what other languages would call a record) containing that data. Then write the object in a new binary file. The binary file that you have created should contain a series of records, each record containing a first name, last name and an age.
The program should then close the file and re-open it for input, read the file record by record and display on the screen, one record per line.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
