I'm working on a project that requires me to input data from several text files using a public member function from a class, and assign a value from each function to a private data member. A class object array within the main function will then store a row of data from each of the files in one of its elements, then the cycle repeats until all of the file data (each of the files has the same number of data points) is stored in the class object.
However I'm having some problems getting this to work. I am trying to use the stream state data type ifstream to input the data from the files. Something has gone horribly wrong and I'm not sure what it is. Could someone please give me advice?