The problem is simple enough...

Here the "read" part of my program..
Code:
#include <cstdlib>
#include <iostream>
#include <fstream>

using namespace std;

int main(int argc, char *argv[])
{
    int array[100];
    ifstream file ("in.in");
    
    if(file.is_open()) 
    {
     int x=0;                                     
     while(!file.eof())
     {
      file>>array[x];
      x++;
      cout<<*array<<endl;
     }
     file.close();
     
     cout<<*array;
    }
    
    else
        cout<<"Unable to open file!"<<endl;
         
    system("PAUSE");
    return EXIT_SUCCESS;
}
Well my problem is how to transfer all of the data to my array, what I'm doing really is just copying the first line. Thanks in advance.