#include lt;iostreamgt; Example 1: Open a file called quot;prices.datquot;. If the file opens, print the #include lt;fstreamgt; message…

#include <iostream> Example 1: Open a file called “prices.dat”. If the file opens, print the #include <fstream> message “File successfully opened!”. If not, print “File failed to open”. What data structure should we use to hold the data? Array? Struct?