The exercise says we need to merge two text files into a third one suing std::merge. Since that algorithm works only with iterators and only STL containers have iterators, one acceptable solution would be to save the files' contents into two STL containers and then merge the two using std::merge. Finally we can write the merged data back into a third text file.
Apparently I can't use std::merge with files. The files consist of chars, integers, doubles etc. So I need to make use of an STL container which has begin() and end().
Banana Trees
80 Pounds
123
Jack Sparrow
Jungle surfer
NYC the US
Sony laptops
12 million
24
Frek troy
C++ developer
Bukan Kurdistan
Toshiba PCes
8 million
32
Sara Kruze
Java Programmer
London the UK
Asus PCes
11 million dollars
28
Tony Brown
JavaScript Programmer
WDC the US