Explain three common operations carried out on files.
Answer:
- Sorting: re-arranging records in a pre-defined order in a file, for example, in ascending or descending order.
- Searching: querying a file to find records which match certain conditions.
- Adding new: entering a new record in a file.
- Editing data: changing records in a file.
- Deleting data: removing a record or records from a file.
- Merging files: combining records in two files to form one.