Your Read() function does not need an ofstream object because that is intended to write something. Read() function should only use ifstream to read the data.
After opening the file you have to add a few lines to read each of the numbers in the file. Opening the file doesn't do that for you -- you have to write it yourself. Use the >> operator to do that.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343