Quote Originally Posted by hrstar24
I specifically need help on being able to read in the data files, which will contain like a name, then the value there. What functions should i use to read in this data and store it into an array?
To read in you use operator>>. Some code snipplet:
Code:
std::ifstream f("filename.txt");
std::string s;
float n;
while (f >> s >> n) {
  // form a struct out of s and n and store it in the array
}