please give me a code for this problem.....
Objectives: To implement retrieving of data from text file to a record
To implement storing of updated data from the record to a text file
Procedure:
1. Create a structure for a simple telephone directory system named struct telDirectory{}composed ofchar username[20], long telNum, char address[20].
2. Then create a function for each of the choice below, wherein:
(1)Input record values (input records and save it into a text file)
(2)Edit record values (edit records that are saved, and save the updated records in the text file)
(3)Search record values (seach and display the specific record found on the text file and display it on the screen, for simplicity, seach only for the telephone number).
(4)Quit. (Exits the program)
3. For simplicity of your input. Use only 3 elements for your array of structures.