Question: //in C++ please 1. Write a program that would read an input file and outputs will be the contents of the file sorted in an
//in C++ please

1. Write a program that would read an input file and outputs will be the contents of the file sorted in an ascending order. For example, given following input file data.txt. a quick fox lazy dog jump over a Your program will print a quick fox jump over a lazy dog Every line of the file is considered one string. Use std::sort to sort them. Choose any container of your choice. Test well with lots of input data by modifying the input file (or using different input files). Make sure you have a main() to test your code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
