I want to make a GUI application that contains three functions as follows:
- Add a record
- Edit a record
- Delete a record
A record contains two fields - Name and Profession
There are two restrictions for the application
- You can't use database to store info. You have to use a flat file.
- Total file should not be re-written for every add/delete operation.
So, my questions are mentioned below:
Q1. Which file format would be better? (.xml or .csv or .txt or any other)
Q2. How can we perform the add/delete operation without the whole file being re-written?