Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 614 Bytes

File metadata and controls

10 lines (8 loc) · 614 Bytes

Practical Lab Assignment - File Handling Operations

Create a class Person with two private members name and telephone number

Write a program that will create a data file containing name and telephone numbers of person. Use a class object to store each set of data. Read the file contents and display it on screen.

  • Write an interactive menu driven program that will access the file created in program no. 1 and implement the following tasks:
  • Determine the telephone number of the specified person.
  • Determine the name if telephone number is known.
  • Delete a record.
  • Add a record to a specific position.