Question: Part C: Writing into a Direct Access File Write a C program called LabSC.c to read the student infomation stored in file stdInfo.txt and write
Part C: Writing into a Direct Access File Write a C program called "LabSC.c to read the student infomation stored in file stdInfo.txt and write them into a binary file called "stdInfoDA. dat (DA is shorthand for Direct Access). This file will also be used in part D of this exercise. Note that the input can come directly from the file "stdInfo.txt created in Part B. The format of the file would look like this sample (excluding the first line): D FIRSTNAME LASTNAME GPA YEAR 10 JACK DRELL 64.5 2018 20 MINA ALAM 92.3 2016 40 ABED ALIE 54.0 2017 30 JIM SMITH 78.2 2018 The skeleton code is given below for your convenience. Use the 3 functions specified to perform the reading, printing and saving the records to the file. #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
