Storing data from a dataset

I am having a problem reading in data from a dataset and then storing it into an array. This is what I have so far:

int array[MAX_ARRAY_SIZE];
cout << "The original array: " << endl;
while (infile >> next) // Read the array and then output the array to the user
{
cout << next << " ";
count += 1;
}

Is there to store the values I read in with the while loop to array[]?! Thank you in advance for your help!!!
hey i replied to you in the beginners section.

its not good to post your questions in each forum..
i know you did, but it was a little over my head, could you explain it in easier terms please? the tutorials didn't really help either.
hehehe... will reply to that post..
Topic archived. No new replies allowed.