I dont quite understand what you're saying, but ill take a guess. You want to compare the array with data? If you want to convert a char array holding ints into an Int, you use the following code: data[i] = data[i] - '0' which removes the ascii value. And if you want to store the data you could write the file into varibles like this small program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//Reading Custom File Structures
#include <iostream>
#include <fstream>
usingnamespace std;
int main()
{
ifstream Traits("Players.txt");
int id;
string name;
double money;
while(Traits >> id >> name >> money){
cout << id << ", " << name << ", " << money << " \n";
}
}