I have been trying to follow what you guys where doing here because I have to do something simalar. Can you tell me what the name of your file is jaffo, is it a .dat or a .txt file?
You where using ary, is that the file name?
Acient Dragon,
this is the code that you posted.
int iarray[3] = {0};
float farray[3] = {0.0F};
ifstream in("MCSequentialFile");
in >> iarray[0] >> iarray[1] >> iarray[2];
in >> farray[0] >> farray[1] >> farray[2];
If I was to use your example what would I name my file or doesn't it make any difference?
I created a .dat file using these names:
ofstream outMCSequentialFile( "calculations.dat", ios::out );
So how do I have to call out this file in main?
the .dat file:
7 15 30
5.35 5.5 5.75
Thanks,
Ken