Object Oriented Programming2080.15 marksFile Input/output with Streams
Write a program that stores information of employees in a file and displays the file's content in ascending order of their salary.
Write a program that stores information of employees in a file and displays the file's content in ascending order of their salary. [5]
Ofstream is used to write information to a file, and ifstream is used to read information from a file. The header <fstream must be included. After reading all employee records back from the file, we sort them by salary in ascending order before displaying. --- --- --- Step Operation Stream Used -...