Lab Manual
24
32.
Write a program that will input a person's first name, last name, SSN number and age and write the information to a data file. One person's information should be in a single line. Use the function fprintf to write to the data file. Accept the information and write the data within a loop. Your program should exit the loop when the word 'EXIT' is entered for the first name. Remember to close the file before terminating the program. Hint: Use the function strcmp() to compare two strings.
33.
Modify the program no: 23 using file concept.